• Steam recently changed the default privacy settings for all users. This may impact tracking. Ensure your profile has the correct settings by following the guide on our forums.

[HowTo] Install PSPSDK in Ubuntu 9.04

angelsniper45

New Member
Did you upgrade to ubuntu 9.04 recently? Well theres still hope for your psp homebrewing needs.

Heres what you need---

Before any of this open up a terminal and type in
sudo su
(this enables you to become a root user and allow any changes without having to go through the pesky c

1. Install the essential packages needed to install the toolchain from source --
Code:
sudo apt-get install build-essential autoconf automake bison \
flex libncurses5-dev libreadline-dev libusb-dev texinfo libgmp3-dev

2. After that, download the latest toolchain by ---
Code:
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain

3. Now we need to make some changes to your login script. Run this line of code in a terminal and run this--
Code:
gedit ~/.bashrc

At the end of that file, add these lines - they tell the script where to go and what not
Code:
export PSPDEV=
 
I had Ubuntu 9.04 in a VM so not sure if that was causing issues but I needed to install more packages, maybe you should update the main guide with these

Code:
sudo apt-get install autoconf automake bison flex gcc libmpfr-dev libncurses5-dev  libreadline-dev libusb-dev make patch subversion texinfo wget
Although also when I was running svn to checkout the latest toolchain, it was downloading it and attaching windows newline characters to the text which confused binutils and caused it to say that "GCC cannot create executables" or something similiar.

After downloading the toolchain package using Firefox and extracting using Archive Manager, it worked.

Also, you don't need to do anything as root so sudo su isn't needed

Oher than that, great guide. Hopefully this will encourage more users to get into PSP coding :D
 
that actually is in the first part, although I probably should clear that up.

As for using the sudo su command, thats just me as its proven more reliable in root mode.
When I use normal user mode it always has some problems compiling and whatnot. So that gives you
More power to the user.
 
Great tut, I could've used this a year and a half ago when I did this.
 
problem

I've installed ubuntu 2 days ago, so i'm really noob in this field.
I had the next problem: after entering the first command in terminal console, and after entering su password,

sudo apt-get install build-essential autoconf automake bison \
flex libncurses5-dev libreadline-dev libusb-dev texinfo libgmp3-dev

i got the next message:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

What's wrong? I'm confused.. Please help if you know something about this error.
 
you have to be in root mode, so in your terminal before you do anything else, use

sudo su

and press enter, you shouldnt have any problems after that
 
awsome.

im going to start my beginners guide to ubuntu this weekend, i need time to get it set back up on my other machine but keep yalls eyes peeled.

itll have all the basics you need.
 
if anyone get this error?
ls: cannot access /usr/include/mpfr.h: No such file or directory
do sudo apt-get install libgmp3-dev libmpfr-dev
then sudo ./toolchain-sudo.sh again!

and if you get this error?
checking whether the C compiler (gcc-4.2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
../scripts/001-binutils-2.16.1.sh: Failed.
do this!
* Install GCC 4.2
sudo apt-get install gcc-4.2
* Modify toolchain-sudo.sh,(gedit toolchain-sudo.sh) by adding following right before “export PSPDEV=/usr/local/pspdev”
export CC=/usr/bin/gcc-4.2, then save file!
then do sudo ./toolchain-sudo.sh again!
all should work now!
enjoy:D
 
if anyone get this error?

do sudo apt-get install libgmp3-dev libmpfr-dev
then sudo ./toolchain-sudo.sh again!

and if you get this error?

do this!
* Install GCC 4.2
sudo apt-get install gcc-4.2
* Modify toolchain-sudo.sh,(gedit toolchain-sudo.sh) by adding following right before
 
Back
Top