I have managed to get past that error, even though i am getting lots of them, and some fix themselves or something but i have another error with the psptoolchain it is telling me to add /usr/local/pspdev/bin to my path but it is already there. this is shown in this screenshot
## Check for $PSPDEV/bin in the path.
echo $PATH | grep $PSPDEV/bin 1> /dev/null || { echo "ERROR: Add $PSPDEV/bin to your path before continuing."; exit 1; }
Maybe you don't have grep installed? I don't know... that's very weird. There isn't really much that can go wrong with that check. How about an invisible character somewhere in $PSPDEV, like a ctrl-G?
==================
How do I use it?
==================
1) Set up your environment by installing the following software:
autoconf, automake, bison, flex, gcc, make, ncurses, patch, subversion, terminfo, wget
2) Add the following to your login script:
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin
3) Run the toolchain script:
./toolchain.sh
Maybe running it as 'sudo' isn't using the same path settings his regular user account. Try running it directly as root - or do as I do, just set it up with your regular user account.
"We are dreamers, shapers, singers, and makers. We study the mysteries of laser and circuit, crystal and scanner, holographic demons and invocations of equations. These are the tools we employ and we know... many things." -- Elric, B5
first of all i downloaded the latest toolchain from the svn, then i followed the exact instructions and based off other errors installed more things until it worked up until this point. The weird thing is that I have been getting very variable errors, a couple of times I got errors building binutils and a few other i don't remember. In response to the invisible character i copy and pasted it from the instructions but i will go back and retype it. also it would be nice if you could tell me what grep was but i will install it. Finally when i was not running it in root or sudo i was getting no permissions to create /usr/local/pspdev/bin even though it was already there.
Edit: I just typed "sudo apt-get install grep" in terminal and it went through and said "grep is already the newest version"
Edit 2: just tried running it without sudo in my regular account and got:
Then, leave root and rerun the toolchain.sh script with your regular account. The other option is to just to do the full install as root. These are all basic linux commands and unix concepts - maybe you should read up a bit on linux administration and unix C programming. Incorrect file/dir permissions can cause strange types of errors.
"We are dreamers, shapers, singers, and makers. We study the mysteries of laser and circuit, crystal and scanner, holographic demons and invocations of equations. These are the tools we employ and we know... many things." -- Elric, B5
In your /home/eric/Desktop/psptoolchain, can you type "ls -al" and post the results. It almost seems as though that directory isn't owned by you so the script fails to save the files. I can't think of what else it might be.
eric@eric-desktop:~/Desktop/psptoolchain$ ls -al
total 36
drwxr-xr-x 7 eric eric 4096 2007-05-25 16:14 .
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:20 ..
drwxr-xr-x 2 root root 4096 2007-05-25 16:29 build
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:10 depends
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:10 patches
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:10 scripts
drwxr-xr-x 6 eric eric 4096 2007-05-25 16:12 .svn
-rwxr-xr-x 1 eric eric 567 2007-05-25 16:10 toolchain.sh
-rw-r--r-- 1 eric eric 813 2007-05-25 16:10 toolchain.txt
eric@eric-desktop:~/Desktop/psptoolchain$ sudo chown -R eric:users /home/eric/Desktop/psptoolchain/build
Password:
eric@eric-desktop:~/Desktop/psptoolchain$ ls -al
total 36
drwxr-xr-x 7 eric eric 4096 2007-05-25 16:14 .
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:20 ..
drwxr-xr-x 2 eric users 4096 2007-05-25 16:29 build
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:10 depends
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:10 patches
drwxr-xr-x 3 eric eric 4096 2007-05-25 16:10 scripts
drwxr-xr-x 6 eric eric 4096 2007-05-25 16:12 .svn
-rwxr-xr-x 1 eric eric 567 2007-05-25 16:10 toolchain.sh
-rw-r--r-- 1 eric eric 813 2007-05-25 16:10 toolchain.txt
eric@eric-desktop:~/Desktop/psptoolchain$
based off of what you had me do before
Edit: did the chown command one more time except eric:eric so that it's ownership would match up with the rest of them, and now the toolchain is running. Thank you very much, hopefully this will be the end of my troubles with the toolchain.
Your build directory was owned by root, so your user wasn't able to write into it. Also, it looks like your group is 'eric' not 'users' like alot of linux systems - so you'll need to change the 'chown' command to 'chown -R eric:eric' instead to set the correct group for your account. What I don't really understand is where the call to 'autoconf' is coming from at the start of your call to 'toolchain.sh'. I've checked the script and the first thing it basically does is a 'wget' to fetch the binutils bz2 - not a call to autoconf. However, the filesize of toolchain.sh is correct, so I don't know what's going on.