issues updating cocos2d - cocos2d-iphone

I am having a problem updating Cocos2d to the current version. I deleted the old template files and installed the new version using the command
./install-templates.sh -u -f
but I always get the following in the terminal:
Installing Xcode 4 Box2d iOS template
-------------------------------------------------
mkdir: /Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x: Permission denied
...copying Box2d files
rsync: mkdir "/Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x/lib_box2d.xctemplate/libs" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at /SourceCache/rsync/rsync-42/rsync/main.c(544) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
rsync: mkdir "/Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x/lib_box2d.xctemplate/libs" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at /SourceCache/rsync/rsync-42/rsync/main.c(544) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
done!
Installing Xcode 4 CCNode file templates...
----------------------------------------------------
...creating destination directory: /Users/jubilate/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x/
mkdir: /Users/jubilate/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x: Permission denied
mv: rename /Users/jubilate/Library/Developer/Xcode/Templates/cocos2d v2.x//CCNode class.xctemplate to /Users/jubilate/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x/: No such file or directory
done!
Could someone please help me out. Thanks in Advance

I had the same issue as well. It turned out to due to my previous cocos2d (v1) was installed as "root".
If you do a
ls -ltr /Users/jubilate/Library/Developer/Xcode/
you will see that permission of "Templates" is "root staff"
you need to "sudo -s", enter your root user password, then
cd "/Users/jubilate/Library/Developer/Xcode/"
chown jubilate:staff Templates
this will change the permission of "Templates" to "jubilate staff", which you can then do the installation.
Give it a go and see how it goes.
Cheers

You probably installed the previous templates with the sudo command. You will have to manually delete the files in Finder.
Delete these folders beginning with "cocos2d":
~/Library/Developer/Xcode/Templates/cocos2d*
~/Library/Developer/Xcode/Templates/File Templates/cocos2d*

Related

MinGW pacman -Sys Unable to lock database

To start Code and Compile C++, must install a compiler. For my case, it is MSYS2 through which MinGW is available. According to the installation guild mentioned on the website, I installed the software without any errors. Now I was supposed to update the package database and base packages by entering pacman -Sys but it has shown an error
error: failed to synchronize all databases (unable to lock database)
After searching online for a solution I found that deleting/removing the db.lck will work, for that, I used this command rm /var/lib/pacman/db.lck
but it showed another error. Right now there is no solution to this on the internet.
I've also pasted the terminal output of MSYS2 MSYS for refernce.
$ pacman -Sys
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
VIRAT#DESKTOP-97BS0AB MSYS ~
$ rm /var/lib/pacman/db.lck
rm: cannot remove '/var/lib/pacman/db.lck': No such file or directory
VIRAT#DESKTOP-97BS0AB MSYS ~
$ pacman -S --needed base-devel mingw-w64-x86_64-toolchain
error: failed to init transaction (unable to lock database)
error: could not lock database: Permission denied
VIRAT#DESKTOP-97BS0AB MSYS ~
$ pacman -Su
error: failed to init transaction (unable to lock database)
error: could not lock database: Permission denied
VIRAT#DESKTOP-97BS0AB MSYS ~
$
As I found there 2 solutions for this error. Try both :
Solution : 1
C:\Users\your_account_name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2 64bit
Run "MSYS2 MSYS" as administrator
Run the command : pacman -Syu
Solution - 2 :
C:\msys64\var\lib\pacman ( Go to the downloaded folder)
Delete the "db.lck" file
RESOURCES :
For solution 1 : Mr. Padro's (https://stackoverflow.com/users/18910613/pedro) solution helped me.
For solution 2
https://www.reddit.com/r/archlinux/comments/nvrny2/pacman_error_failed_to_synchronize_all_databases/
Try to run MSYS app under administrator privilege... worked for me

Qt Creator - "Cannot create file: Unknown error"

I bought a new Mac(macOS Big Sur, Apple M1). And I moved all my files from the old Mac to the new one. After downloading Qt creator (I do c++ projects using Qt), whenever I open or close the Qt Creator it shows:
Cannot create file /Users/[username]/.config/QtProject/qtcreator/devices.xml: Unknown error
Multiple times. And I do not know how to fix it.
The problem is that you do not have permissions for the /Users/[username]/.config folder. Use in terminal:
sudo chown -R <username> .config
The answer is from here: "Cannot create file", "Cannot save session" - unknown error, macOS
You can solve the problem by running the following command in terminal:
sudo chown [username] /Users/[username]/.config/
Replace [username] with your username.

Open failed on >infile.nc< No such file or Directory using Cygwin64

I have installed cygwin64 in Windows 10 all packages and the installation was successfully. I have also downloaded CDO version 1.9.8 and copied to to bin folder (C:/Cygwin64/Bin). I also change my directory to C:/Cygwin64/Bin but when i am using the cdo sinfon operator, it gives me the bellow error:
Ayoubi#Ayoubi /usr/bin
$ cdo sinfov pr_WAS44MIROCMIROC5
cdo sinfon: Open failed on >pr_WAS44MIROCMIROC5<
No such file or directory
you can see the CDO -v informationenter image description here and error in the attached image.
I have deleted and reinstall the cygwin64 many times but it does not solve the problem. Could you please help and explain how i can overcome this problem.
I am sorry if this is the basic question but i am new in programming and scripting.

Installing GeoIP - maxminddb_module and libmaxminddb Errors

After installing maxminddb_module and libmaxminddb from
http://maxmind.github.io/mod_maxminddb/ and
https://github.com/maxmind/libmaxminddb
On restarting apache, I get the following error:
Syntax error on line 243 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib64/httpd/modules/mod_maxminddb.so into server: libmaxminddb.so.0: cannot open shared object file: No such file or directory
httpd.conf line 243 is:
LoadModule maxminddb_module /usr/lib64/httpd/modules/mod_maxminddb.so
It seems everything is in its right place, but I can't get them all to play nice and talk to each other. Would appreciate some assistance. Thanks!
From https://github.com/maxmind/libmaxminddb :
If after installing, you receive an error that libmaxminddb.so.0 is missing you may need to add the lib directory in your prefix to your library path. On most Linux distributions when using the default prefix (/usr/local), you can do this by running the following commands:
$ sudo sh -c "echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf"
$ ldconfig
Try running sudo ldconfig and see if that fixes the problem.

How do I tell ColdFusion 9.0.1 to use a directory besides /tmp?

I installed ColdFusion 9.0.0 today and I'm trying to upgrade to 9.0.1.
Linux 64bit environment.
I don't have root access.
/tmp doesn't seem to have enough room to install 9.0.1
I found the following errors in /opt/coldfusion9/Adobe_ColdFusion_9.0.1_InstallLog.log
Install File: /tmp/515453.tmp/cf-multi-startup
Status: ERROR
Additional Notes: ERROR - ZeroGlq: No space left on device
Install File: /tmp/515453.tmp/cf-init.sh
Status: ERROR
Additional Notes: ERROR - ZeroGlq: No space left on device
I tried -D IATEMPDIR=/opt/temp, but installer says it's trying to use /home/coldfusion due to lack of space in /tmp. It tries to use /tmp anyway.
Any ideas?
Here's my final script that worked. I had to fill /tmp and /home to 100% to get a decent error response out of the bin file. I'm sure my Linux admins were very pleased.
cd /opt/coldfusion9/bin
IATEMPDIR=/home/coldfusion
export IATEMPDIR
LAX_DEBUG=1
export LAX_DEBUG
./ColdFusion_update_901_WWEJ_linux64.bin