| View previous topic :: View next topic |
| Author |
Message |
frcol
Joined: 02 Aug 2006 Posts: 20 Location: Brazil
|
Posted: Fri Aug 04, 2006 2:04 pm Post subject: gmake: command not found |
|
|
Does anybody knows how can I fix it?
It happens when a run ./toolchain.sh |
|
| Back to top |
|
 |
JorDy
Joined: 11 Dec 2005 Posts: 121
|
Posted: Fri Aug 04, 2006 8:18 pm Post subject: |
|
|
| gmake is gnumake and can be found in the "devel" category in cygwin and as far as im aware it is not needed, it will use make if it cannot find gmake |
|
| Back to top |
|
 |
frcol
Joined: 02 Aug 2006 Posts: 20 Location: Brazil
|
Posted: Sat Aug 05, 2006 7:36 am Post subject: |
|
|
it seems that the line 68 of toolchain, the instruction IF is not working, because it shows that there is an error in line 68, gmake: command not found.
well I'll desinstall all the cygwin and install everything again. |
|
| Back to top |
|
 |
JorDy
Joined: 11 Dec 2005 Posts: 121
|
Posted: Sat Aug 05, 2006 9:06 am Post subject: |
|
|
| you didnt have to uninstall it you can just rerun the setup.exe and get the needed packages |
|
| Back to top |
|
 |
frcol
Joined: 02 Aug 2006 Posts: 20 Location: Brazil
|
Posted: Sat Aug 05, 2006 1:46 pm Post subject: |
|
|
It's still showing:
$ ./toolchain.sh
./toolchain.sh: line 68: gmake: command not found
mkdir: missing operand
Try `mkdir --help' for more information.
ERROR: Please make sure you're root. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Aug 05, 2006 3:21 pm Post subject: |
|
|
| Read carefully, gmake isn't the error - mkdir is. Its failing when trying to make the $PS2DEV directory. |
|
| Back to top |
|
 |
frcol
Joined: 02 Aug 2006 Posts: 20 Location: Brazil
|
Posted: Sun Aug 06, 2006 1:16 am Post subject: |
|
|
The problem is here:
mkdir -p $PS2SDK || { echo "ERROR1: Please make sure you're root."; exit; }
the "$" is the problem, if I take off this symbol, it works. Do you know why? |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sun Aug 06, 2006 2:01 am Post subject: |
|
|
Sure. When you take off the $, it makes a directory called PS2SDK. Unfortunately, later in the script it will try to install software into $PS2SDK so you're still going to have problems as that directory doesn't exist, and has troubles being created.
You see, $PS2SDK is an environment variable. It is typically set to '/usr/local/ps2dev/ps2sdk'. Removing the $ is a rather silly thing to do. |
|
| Back to top |
|
 |
frcol
Joined: 02 Aug 2006 Posts: 20 Location: Brazil
|
Posted: Sun Aug 06, 2006 3:29 am Post subject: |
|
|
| ooPo wrote: |
You see, $PS2SDK is an environment variable. It is typically set to '/usr/local/ps2dev/ps2sdk'. Removing the $ is a rather silly thing to do. |
So, do you know the reason that I can't create this enviroment variable?
$PS2SDK ?
$ mkdir -p $PS2SDK
mkdir: missing operand
Try `mkdir --help' for more information. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sun Aug 06, 2006 4:33 am Post subject: |
|
|
It appears that $PS2SDK is empty. Try this to see what it is set to:
echo $PS2SDK
Chances are you didn't read the readme that tells you to set the environment variables before running the script, or perhaps you removed them or even broke them somehow in your editing of the script. They should be near the top. |
|
| Back to top |
|
 |
frcol
Joined: 02 Aug 2006 Posts: 20 Location: Brazil
|
Posted: Sun Aug 06, 2006 8:00 am Post subject: |
|
|
| ooPo wrote: | | It appears that $PS2SDK is empty. Try this to see what it is set to: echo $PS2SDK. |
It returned Nothing
| ooPo wrote: | | Chances are you didn't read the readme that tells you to set the environment variables before running the script, or perhaps you removed them or even broke them somehow in your editing of the script. They should be near the top. |
the Readme file says:
=========================
Basically, you run the toolchain script:
## Make the script executable.
chmod a+x ./toolchain.sh
## Run the script.
./toolchain.sh
First, this script will attempt.... This may take a long time.
Once finished, you need to add the following to your login settings:
## PS2DEV SETTINGS
export PS2DEV="/usr/local/ps2dev"
export PS2SDK="$PS2DEV/ps2sdk"
export PATH="$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin"
Then you're done!
==========================
So, I'm wating to complete the toolchain instalation to set those variables.
I have just edited the "GMAKE" and "MKDIR" parts of the script, but restored back to the original.
Any help will be welcome. |
|
| Back to top |
|
 |
fluxity

Joined: 16 Mar 2006 Posts: 2
|
Posted: Wed Aug 16, 2006 6:39 am Post subject: |
|
|
| I'm having the same error as well, and followed it all exactly, any ideas? |
|
| Back to top |
|
 |
ShdoHawk01

Joined: 18 Aug 2006 Posts: 5 Location: Milford, CT USA
|
Posted: Fri Aug 18, 2006 2:41 am Post subject: |
|
|
ooPo and friends, I only got it to run once I explicitly set the paths in the script, i.e. changing all instances of $ps2dev to "/usr/local/ps2dev" (without the quotes)... etc. There's something it doesn't like in the latest Cygwin setup methinks.
it's still running as we speak, so if I run into any problems later I'll edit this post and let you all know.
-Shadowhawk
-Edit- I noticed something while it was running, it says building GCC 3.2.2, but Cygwin installed GCC 3.3.3 iirc... sounds like a source of further problems... -/Edit- _________________ No boom TODAY. Boom TOMORROW. There's ALWAYS a boom tomorrow. - Cmdr. Susan Ivanova, Babylon 5 |
|
| Back to top |
|
 |
ShdoHawk01

Joined: 18 Aug 2006 Posts: 5 Location: Milford, CT USA
|
Posted: Sat Aug 19, 2006 6:19 am Post subject: |
|
|
Well it blew up because I forgot to use the older cygwin core etc. for the haifablahblah error. So I reinstalled and made sure to use the correct core this time. I also downgraded to GCC 3.2.2 to be safe.
The altered script worked, but I ended up with an error further down the line that I think I can attribute to not having installed something (missing commands when it was compiling the GCC-EE stuff. I was at work and had to abandon it for now, but I'll be trying again with Cygwin on my dev machine at home tonight.
In the meantime, since I'm not so good at slogging thru Linux, can someone talk me thru installing SVN and building the toolchain on Mandrake Linux Free 2006? Ultimately I might decide to go that route and would like to be prepared. PMs are fine. _________________ No boom TODAY. Boom TOMORROW. There's ALWAYS a boom tomorrow. - Cmdr. Susan Ivanova, Babylon 5 |
|
| Back to top |
|
 |
|