This question already has answers here:
Add Cocos2D to project in xCode 4
(2 answers)
Closed 9 years ago.
I can't successfully install the Cocos2D templates for XCODE 4.2 in Mac Leopard 10.6.8.
When I call the ./install-templates.sh -f -u command line I get a lot of "command not found" errors (for rsync, mkdir etc). I also tried to type "sudo" on the terminal and I get the same error... it seems like a path problem right?
The most curious is that if I login using the root account the installation works, but when I come back to my development user, I open XCode and still can't see the templates :-(
Any idea?
run the Repair Permissions utility in the Disk Utility program for your partition. it's harmless, good maintenance practice, and might solve your issues.
Related
I'm attempting to install RStudio in WSL2. R itself works just fine, however when I install and try to run RStudio I get the following error:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
I've seen that other people have solved this problem by:
Installing libqt5x11extras5 and running the following command:
sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/
Attempting to reinstall libqt5x11extras5 and other xcb related libraries I get the following message at the end and rstudio still doesn't work:
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link
In the /wsl/lib/ folder there are what I believe are a few duplicate files of libcuda.so libcuda.so.1 and libcuda.so.1.1. This folder is read only and it seems like it's that way for a reason.
I'm assuming the solution involves making libcuda.so.1 a symbolic link but I'm not quite sure where I should be pointing it given wsl's slightly different file structure than regular ubuntu.
edit: for example I've tried
sudo ln -sf /usr/lib/wsl/lib/libcuda.so.1 /usr/bin
however it doesn't fix the issue with rstudio, and when I reinstall the xcb libraries I still get the same error about it not being a symbolic link.
edit 2: solved it! I needed to install windows 11 for the gui to work. I had read somewhere it would also work with the latest version of windows 10 but I guess not.
This question already has answers here:
How to find correct executable with Sys.which on Windows
(2 answers)
Closed 2 years ago.
I'm trying to debug why I'm suddenly getting the error
tar.exe: Error exit delayed from previous errors.
on running install_github. Thinking there might be a problem with the tar program, I came across this oddity:
> Sys.getenv("PATH")
[1] "C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Rtools\\bin;C:\\Windows\\system32;[...]"
> Sys.which("tar")
tar
"C:\\WINDOWS\\SYSTEM32\\tar.exe"
> file.exists("C:\\Rtools\\bin\\tar.exe")
[1] TRUE
Why is R using the system tar, as opposed to the Rtools-supplied tar, when the Rtools directory is earlier in the path?
OS is Windows 10 2004 (build 19041.330), R 4.0.0.
This appears to be a known problem, for... several years now:
How to find correct executable with Sys.which on Windows
I tried to find documentation for this. I came across this:
https://cran.r-project.org/manuals.html
and in turn this:
https://cran.r-project.org/doc/manuals/r-release/fullrefman.pdf
but it turns out that PDF is specific to Unix, and omits Windows specific parts.
I am not sure of any official Windows PDF. So failing that, you can look at the
source directly:
The search path for command may be system-dependent: it will include the
bin directory, the working directory and the Windows system directories
before PATH.
https://github.com/wch/r-source/blob/92712b53/src/library/base/man/system.Rd#L77-L79
Note on the same page, I also see this:
This interface has become rather complicated over the years: see system2
for a more portable and flexible interface which is recommended for new code.
(If the Windows PDF is hosted in an official place, someone please let me know).
So I am having this issue for the past 8-9 hours. I have been trying to resolve it by googling around.
This is what I have tried so far.
1) Totally uninstalled node and npm.
2) Totally uninstalled meteor. Deleted all the local/.meteor data. Searched for meteor in entire C drive and deleted it. Restarted the PC.
3) Reinstalled node, npm and meteor js again. (Did steps 1-3 in safe mode also and tried 3 times.)
4) Ran command and got this error again. "C:\Users\Admin\AppData\Local.meteor\packages\meteor-tool\1.4.4_2\mt-os.window
s.x86_32\dev_bundle\lib\node_modules\q\q.js:70
hasStacks = !!e.stack;
^
RangeError: Maximum call stack size exceeded".
Note: The same code works for me in another system, so apparently code is fine the issue is with meteor and my pc.
Then I found that creating new windows account and installing meteor there can make it work. So I tried to do that as well but no luck.
I need help to resolve this as I don't have any clue what to do next.
Meteor version is: 1.4
Node version is: 6.10.3
NPM version is: 3.10.10
Apologies for late response, just had the same problem and was eventually able to solve it. The problem is that windows doesn't like long file paths. Unfortunately, meteor is full of them so the installer seems to miss those files.
Try this:
Install meteor if its not already.
navigate to C:\Users\%username%\AppData\Local and delete the
.Meteor folder.
Download the installation archive:
https://meteorinstall-4168.kxcdn.com/packages-bootstrap/1.5/meteor-bootstrap-os.windows.x86_32.tar.gz
use 7-zip to extract the .Meteor folder somewhere with a shorter
path; ie: C drive root directory. Make sure you are running 7-Zip as
admin, and extract it using 7-Zips interface. Don't drag and drop as
this will extract to the temp folder first.
Go to your Environment Variables (in Control Panel/Advanced System
Settings), edit Path, and change the .Meteor directory to where you extracted the folder.
Open up CMD, cross your fingers, and enter meteor --version
Hope this helps any desperate souls out there.
I'm trying to install Riverbank's PyQt for the first time, and from reading some other questions here, it looks like I need to update my Qt from 4.6 to 4.7. I've downloaded QtSDK, PyQt, and sip all within the last 2 days, so they all should be the latest.
I've installed Qt 4.6 before, and it put everything where I would expect. For example, I have a directory /usr/local/Qt4.6 that has a couple files in it, and other files, like frameworks, seem to be where I'd expect them.
Now, with Qt4.7, it looks like there's this huge package (QtSDK) that include mobile, and when the installation is done(installed into /Developer/QtSDK without issues using the online installer), I look in what I thought were the expected areas:
/usr/include - only 4.6, no 4.7
/Library/Frameworks - time stamps over a year old, indicating it's my 4.6 install
/Developer/Tools/Qt - time stamps over a year old
/usr/local - only 4.6, no 4.7
/Developer/Applications/Qt/plugins - time stamps over a year old
and I don't see Qt4.7 anywhere - I don't think I saw anything install outside of the /Developer/QtSDK area. I don't remember having to do anything special to more 4.6 into place. Is there some kind of make install type stuff I need to do for 4.7 after the online install finishes?
Or do I need to add stuff to a bunch of environment PATHs or configure files to point to the new Qt4.7?
When I try to run the configure.py for PyQt, it thinks my Qt version is 4.6(and chokes on QDBusPendingCall), so I'm pretty sure it's not seeing the newer install.
My Mac is Snow Leopard 10.6.8.
Thanks in advance!
All you need to do is set
export QTDIR=/path/to/SDK/root
export PATH=${QTDIR}/bin:$PATH
Once you're building things, the really important part is that the right 'qmake' needs to be in your path. (i.e. not an older one). After that, qmake will tell everything that wants to build Qt stuff where it (and its libraries/frameworks/includes live)
I've got Plone 4 running on Mac OS Server 10.6. I'd like to make it possible for the search facility on my Plone site to search for text within the pdf files which are stored there.
I've searched around, but the closest I can find is information about doing this on Plone 3 with Linux.
Please could anyone help?
The basic idea is the same. You need to install the external "pdftohtml" command line utility. In Plone 4 you don't need to do any other configuration in the ZMI or other places. Once the pdftohtml tool is installed new files being uploaded will get their contents indexed. You can go to the catalog in the ZMI to the indexes tab and "reindex" the "SearchableText" index to also cover already uploaded files.
One way to install system packages on Mac is to use MacPorts (http://www.macports.org/install.php). If you use that approach, you can call:
$ sudo port install poppler
Once that has finished, you should be able to call the tool and see something like:
$ pdftohtml -v
pdftohtml version 0.16.5
Copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org
You might need to add /opt/local/bin to the PATH variable of the user running the Plone process.
The documentation for Plone 3 applies for Plone 4 in the same way.