Installer le psptoolchain sur Linux

This tut should hopefully help anyone who wishes to bother install the psptoolchain. For those of you who dont know, the psptoolchain is the « official » sdk used to develop programs for the psp.

Installing the pspsdk on linux can be particularly difficult, especially if you are not familiar with linux.

note: starting this off with the sudo su command may make this easier

step #1 – install necessary packages

The pspsdk requires many additional packages be installed before it can be installed successfully. you may already have some of these packages installed, but it never hurts to check.

So, to get the necessary packages, run this command (all in one line):

sudo apt-get install autoconf automake bison flex gcc libmpfr-dev libncurses5-dev libreadline-dev libusb-dev make patch subversion texinfo wget

note: this command may not work for ALL distros. that being said these are the packages you need, so if this command doesnt work for you just get these packages using your native package manager.
Once that command has finished executing, you are ready to move on to the next step.

step #2 – download the latest psptoolchain

The psptoolchain contains all the files for installing the pspsdk.

The first thing to know is that the original source for the pspsdk,, has been going on and offline (mostly offline xD) for a while now. that being said, a alternative source can be found at

So, to attempt to download the psptoolchain from, run this command:

svn co svn://
9 times out of ten that will not work

If it does: great! but if (and when) it doesnt, use this command to download the psptoolchain from the backup svn:

svn co
Which should work once the download is complete, you’re ready for the next step.

As I said, all the installation scripts are set up for so, if you followed the steps and were able to download the psptoolchain from, proceed to step #3.
However if you had to resort to the backup at (which you more than likely did, then you will need to proceed to step #2a before heading to step #3

step #2a – modifying the psptoolchain installation scripts

As I said before, all the installation scripts for the pspsdk still reference before you proceed you will need to modify those scripts.

These are the scripts you will need to modify:


so, what you will have to do is gedit (or sudo gedit if you dont have priviledges) each of those scripts and make the following changes. here is an example of the original code:

## Download the source code.
if test ! -d "pspsdk"; then
svn checkout svn://
svn update pspsdk

Here is the change you need to make:

## Download the source code.
if test ! -d "pspsdk"; then
##svn checkout svn://
svn checkout
svn update pspsdk

Basically all you are doing if commenting out (hence the ##) the code downloading from and adding code to download from

The only other thing to notice is that this particular code is for downloading from the the pspsdk directory (which you can tell by the /pspsdk). Other scripts may be downloading from a different directory, so make sure to preserve the final location from the end of the code you commented out and add it to the code you added.

e.g. , if the code you commented out was like this:

svn checkout svn://
Then make sure the code you add is like this:

svn checkout
Once you have edited the 3 scripts, you are ready for the next step.

step #3 – modifying your login script

Now we need to make some changes to your login script. start by running this command:
gedit ~/.bashrc

Once it is open scroll to the very bottom and add these lines:
export PSPDEV=/usr/local/pspdev
export PSPSDK=$PSPDEV/psp/sdk
export PATH=$PATH:$PSPDEV/bin:$PSPSDK/bin

After that simply save and exit gedit. now you can move on to the next step.

step #4 – execute the toolchain script

Now everything should be ready to install the psptoolchain. first thing you need to do is change directory to the psptoolchain directory like this:

cd psptoolchain
Now you can run the psptoolchain script:

sudo ./
That command will begin executing the script. the process is very large and takes around 30-40 minutes to complete depending of course on the specs of the machine. Once it is complete you have successfully installed the pspsdk! congrats! now get out there are start coding!

note: if you are receiving errors such as « psp-config not found », verify that you set up the environmental variables correctly (see step #3) and that you have the permissions set correctly on the .bashrc file (this happened to me). For more information on permissions in general, see this thread: Understanding Linux file permissions

source :