Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

teCma2

macrumors newbie
Original poster
Apr 9, 2011
10
0
hey guys

trying to install cocos2d iphone templates by writing in terminal:

(first the directory) cd /Users/Mathias/Desktop/cocos2d-iphone-0.99.5

(then the install) ./install-templates.sh

and it says: -bash: ./install-templates.sh: Permission denied...

What should I do? Im running mac OS X 10.6.6 and I AM admin..
 
Hey

thx for your input - when i try sodu this comes:


WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

....


Not sure if i should try? any experts with advice? or you?
 
Hey

thx for your input - when i try sodu this comes:


WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

....


Not sure if i should try? any experts with advice? or you?

That comes up the first time you use sudo, because with sudo you temporarily gaining root access to perform an action. You can if you're not careful really mess up your system with sudo, so care must be taken
 
That comes up the first time you use sudo, because with sudo you temporarily gaining root access to perform an action. You can if you're not careful really mess up your system with sudo, so care must be taken

ok, do u know if its ok to use it here? I have this folder with cocos2diphone and wanna install some contents from it to my xcode library?

Anyways, just doin it. but how would i type in my password? I cant type in the terminal when it says PASSWORD: ??????
 
Last edited by a moderator:
You can actually type your password in the terminal. You can't see the letters on the screen, but they are there.
So just type your password and press enter. Hope I helped.:)
 
Sorry if this is a stupid question, but did you enter ./install-templates.sh in the terminal, or ./install-templates.sh -u? The -u part is important.
 
Sorry if this is a stupid question, but did you enter ./install-templates.sh in the terminal, or ./install-templates.sh -u? The -u part is important.

No questions are stupid - all help is appreciated. but yes, of course I typed in -u ;)
 
I only have one solution left, but that is because I don't know what the "." means before "/install-templates.sh". My solution is the following command:
./install-templates.sh -u -f
or:
./install-templates.sh -f
Again, I'm not a real expert so what I say could be total junk.
 
I only have one solution left, but that is because I don't know what the "." means before "/install-templates.sh".

The "." means the current folder the Terminal shell is standing in. Writing "./install-templates.sh" means that we want to execute the install-templates.sh that is located in the current folder (provided that it is executable).

trying to install cocos2d iphone templates by writing in terminal:

(first the directory) cd /Users/Mathias/Desktop/cocos2d-iphone-0.99.5

(then the install) ./install-templates.sh

and it says: -bash: ./install-templates.sh: Permission denied...

What should I do? Im running mac OS X 10.6.6 and I AM admin..

My guess would be that the script doesn't have the appropriate executable bit set. To make sure the script is executable, run:

Code:
chmod +x install-templates.sh
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.