forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

gmake: command not found

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Fri Aug 04, 2006 2:04 pm    Post subject: gmake: command not found Reply with quote

Does anybody knows how can I fix it?
It happens when a run ./toolchain.sh
Back to top
View user's profile Send private message Send e-mail
JorDy



Joined: 11 Dec 2005
Posts: 121

PostPosted: Fri Aug 04, 2006 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Sat Aug 05, 2006 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
JorDy



Joined: 11 Dec 2005
Posts: 121

PostPosted: Sat Aug 05, 2006 9:06 am    Post subject: Reply with quote

you didnt have to uninstall it you can just rerun the setup.exe and get the needed packages
Back to top
View user's profile Send private message
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Sat Aug 05, 2006 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Aug 05, 2006 3:21 pm    Post subject: Reply with quote

Read carefully, gmake isn't the error - mkdir is. Its failing when trying to make the $PS2DEV directory.
Back to top
View user's profile Send private message Visit poster's website
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Sun Aug 06, 2006 1:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sun Aug 06, 2006 2:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Sun Aug 06, 2006 3:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sun Aug 06, 2006 4:33 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
frcol



Joined: 02 Aug 2006
Posts: 20
Location: Brazil

PostPosted: Sun Aug 06, 2006 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
fluxity



Joined: 16 Mar 2006
Posts: 2

PostPosted: Wed Aug 16, 2006 6:39 am    Post subject: Reply with quote

I'm having the same error as well, and followed it all exactly, any ideas?
Back to top
View user's profile Send private message
ShdoHawk01



Joined: 18 Aug 2006
Posts: 5
Location: Milford, CT USA

PostPosted: Fri Aug 18, 2006 2:41 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address MSN Messenger
ShdoHawk01



Joined: 18 Aug 2006
Posts: 5
Location: Milford, CT USA

PostPosted: Sat Aug 19, 2006 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group