Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
March 11, 2010, 08:38:19 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Welcome to PSP-Programming.com
Home Help Search Shop Login Register
Digg This!
Pages: [1] 2 3 ... 17
Print
Author Topic: Setting Up CYGWIN in 7 simple steps - Updated 12/23  (Read 65368 times)
nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +31/-2
Offline Offline

Posts: 1158
804.49 points

View Inventory
Send Money to nathan42100


View Profile WWW
« on: May 06, 2006, 07:29:41 PM »

Hey, so it seems a lot of you are having trouble setting up cygwin, most of the time, it isn't even your fault. So I am making a tutorail to standardize the directions so that everyone starts out with the same thing  Wink I'm also making this because Lesson one is a little out of date and doesn't include all necessary info (I'm not admin on script scribbler). This also cuts out all the info stuff that is not necessary for completing Lesson one as well as puts it into step by step form.

NOTES:
- If you are on a Linux machine, directly jump to step 5 and type everything into your terminal/shell instead of 'cygwin'. You probably also need to install a few libraries, which can easily be achieved by the following:
DEBIAN based distributions:
Quote
sudo apt-get install autoconf autogen automake1.9 libtool build-essential flex bison subversion libncurses5-dev libgmp3-dev libmpfr-dev libreadline5-dev texinfo libusb-dev
- If your windows user name contains whitespaces, you're gonna get problems after installing cygwin (step 4).
In that case, rename the folder "/cygwin/home/[your username]" to not contain any spaces and edit the file /cygwin/etc/passwd to match the new folder name. Afterwards restart cygwin and proceed with step 5.

Step One:
Download CYGWIN's setup.exe to the directory of your choice from here:
http://www.cygwin.com/setup.exe

Step Two:
Run CYGWIN's setup.exe. When you reach a screen similar to this:

proceed to step three.

Step Three:
After reaching the above screen, click into the text entry box titled "User URL:". In the text box, enter this (you can copy and paste):
Code:
http://sources-redhat.mirror.redwire.net
Then click add and next.

Step Four:
Click on next. Now it will download the package list, this could take a few minutes, depending on your connection speed.
You can now choose to install the default (more download, easier to setup) or the minimum cygwin environment required:
Option 1 (default/easy): Scroll down to "devel" and click on where it says "default" so that it becomes "install." Then scroll down to "web," click the "+" next to it, scroll down and set "wget" to "install."
Option 2 (minimum/complex): Make sure that "All" is set to "Default". Click on "View" once so it lists all packages by name. Scroll down and select the following packages to "install":
Code:
autoconf
automake
binutils
bison
flex
gcc
gcc-core
gcc-g++
libusb
libtool
make
ncurses
patch
patchutils
readline
subversion
texinfo
wget
libgmp-devel
libgmp3
libmpfr-devel
libmpfr0
libmpfr1
Press Next. A screen with a message about "missing dependencies" might follow - just click Next again.
Now wait until everything has been downloaded. The minimal setup downloads ~50MB.

Step Five:
Start cygwin and type this:
Code:
echo "export PSPDEV=/usr/local/pspdev" >> ~/.bashrc
echo "export PATH=\$PATH:\$PSPDEV/bin" >> ~/.bashrc
Close cygwin.

Step Six(long step):
Now run cygwin again and type this exactly:
Code:
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
Once the above step is done, type the following exactly in to the CYGWIN console:
Code:
cd ./psptoolchain
./toolchain.sh
This might take up to several hours. Take the time and do something useful with it.
At the end, an error message that ../scripts/003-psplinkusb.sh has failed may occur. Ignore that and
just type the following (if you want to use PSPLINK - see below):
Code:
cd build/psplinkusb/
make && make release
Now read up psplink_manual.pdf (Acrobat) or psplink_manual.sxw (OpenOffice) to learn how to setup psplink in case you want to use it for easier development. This is just an optional step though.

Step Seven:
Have fun coding- Thats an order soldier!

Hope this helped you. I have tested this server and guarantee it to have all needed packages.
« Last Edit: September 27, 2008, 07:29:50 AM by Raphael » Logged

All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
dn ʎɐʍ sıɥʇ
Help support my computer projects!



TeamOverload
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 95
0.00 points

View Inventory
Send Money to TeamOverload

View Profile WWW
« Reply #1 on: May 06, 2006, 07:44:17 PM »

Nice tut, i am going to try it tomorrow
Logged

Nothing is unhackable!
jsharrad
Give Miinaturvat points!
Global Moderator
Hero Member
*

Karma: +41/-1
Offline Offline

Posts: 603
764.52 points

View Inventory
Send Money to jsharrad

Yarr!


View Profile
« Reply #2 on: May 06, 2006, 11:08:05 PM »

You get alot of unneeded stuff if you chose the entire devel category to install.  For advanced users that want to just install the packages that are needed for the pspsdk press "View" once on the package screen and chose these ones:

autoconf
automake
doxygen (optional - if you want pspsdk to create docs for itself)
flex
make
patch
subversion
wget

(as well as the ones setup has already chosen for you)
Logged

MinerPSP Coder
MinerPSP Website
TeamOverload
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 95
0.00 points

View Inventory
Send Money to TeamOverload

View Profile WWW
« Reply #3 on: May 07, 2006, 06:32:33 AM »

Alright so cygwin actually installed right, so now Im about to try the other steps, ill let you know if I need any help

Edit: I need help on step 5.  I type that, and it starts to run the command, but then it gives me the error

svn: PROPFIND request failed on /psp/trunk/psptoolchain
svn: PROPFIND of '/psp/trunk/psptoolchain' : 405 method not allowed <http://svn.ps2dev.org>
Logged

Nothing is unhackable!
tommydanger
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 45
1090.20 points

View Inventory
Send Money to tommydanger

View Profile
« Reply #4 on: May 07, 2006, 06:42:55 AM »

Nice tutorial, still love it.
I tried to update the pspsdk yesterday with
Code:
./toolchain.sh -p
but failed, don't know why, something with sceGum..., whatever.
So i downloaded the latest toolchain and compiled the sdk once more Very Happy
TO: Just make sure you have a good dvd to watch when you enter step #6 Very Happy
Logged
TeamOverload
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 95
0.00 points

View Inventory
Send Money to TeamOverload

View Profile WWW
« Reply #5 on: May 07, 2006, 06:45:36 AM »

I cant get past step 5, and ya I heard step 6 takes a while...but im patient
Logged

Nothing is unhackable!
harleyg
Give miinaturvat Points!
Hero Member
*****

Karma: +11/-14
Offline Offline

Posts: 715
462.95 points

View Inventory
Send Money to harleyg


View Profile
« Reply #6 on: May 07, 2006, 06:56:02 AM »

Bet you can make a "installing linux" in under 10 steps  Laughing
Logged
Mianvro
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 21
0.00 points

View Inventory
Send Money to Mianvro


View Profile WWW
« Reply #7 on: May 07, 2006, 07:53:15 AM »

Quote from: "TeamOverload"
Alright so cygwin actually installed right, so now Im about to try the other steps, ill let you know if I need any help

Edit: I need help on step 5.  I type that, and it starts to run the command, but then it gives me the error

svn: PROPFIND request failed on /psp/trunk/psptoolchain
svn: PROPFIND of '/psp/trunk/psptoolchain' : 405 method not allowed <http://svn.ps2dev.org>


That would be because the link is incorrect.
Use "svn://svn.ps2dev.org/psp/trunk/psptoolchain" and amaze yourself Smile
Logged

Watch me!
Yeldarb
Miinaturvat Rules!
Administrator
Hero Member
*

Karma: +16/-3
Offline Offline

Posts: 602
4160.65 points

View Inventory
Send Money to Yeldarb


View Profile WWW
« Reply #8 on: May 07, 2006, 08:00:50 AM »

Quote from: "Mianvro"
Quote from: "TeamOverload"
Alright so cygwin actually installed right, so now Im about to try the other steps, ill let you know if I need any help

Edit: I need help on step 5.  I type that, and it starts to run the command, but then it gives me the error

svn: PROPFIND request failed on /psp/trunk/psptoolchain
svn: PROPFIND of '/psp/trunk/psptoolchain' : 405 method not allowed <http://svn.ps2dev.org>


That would be because the link is incorrect.
Use "svn://svn.ps2dev.org/psp/trunk/psptoolchain" and amaze yourself Smile

Fixed  Wink
Logged

TeamOverload
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 95
0.00 points

View Inventory
Send Money to TeamOverload

View Profile WWW
« Reply #9 on: May 07, 2006, 08:45:55 AM »

alright thanks guys, ill try that now
Logged

Nothing is unhackable!
soulphalanx
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 19
0.00 points

View Inventory
Send Money to soulphalanx

View Profile
« Reply #10 on: May 07, 2006, 09:13:21 AM »

also, in cygwin, get libtool if you want to use libvorbis, libTremor, and libogg
Logged
TeamOverload
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 95
0.00 points

View Inventory
Send Money to TeamOverload

View Profile WWW
« Reply #11 on: May 07, 2006, 09:15:23 AM »

About how long is step 6 supposed to take?  I know its a long time, but about how long is it?
Logged

Nothing is unhackable!
soulphalanx
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 19
0.00 points

View Inventory
Send Money to soulphalanx

View Profile
« Reply #12 on: May 07, 2006, 09:17:24 AM »

depends on your internet cause it downloads stuff at first
then depends on your pc specs

i have a 2600+ AMD Athlon at 2.133 GHz
512 DDR PC2700 SDRAM
with 4 mbps cable

and it took about 4 hours
Logged
TeamOverload
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 95
0.00 points

View Inventory
Send Money to TeamOverload

View Profile WWW
« Reply #13 on: May 07, 2006, 09:18:47 AM »

Well i have faster internet but less ram, so im guessing it should be 3-4
Logged

Nothing is unhackable!
Mianvro
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 21
0.00 points

View Inventory
Send Money to Mianvro


View Profile WWW
« Reply #14 on: May 07, 2006, 09:35:45 AM »

Could someone with a complete Cygwin installation please tell me where the start-menu icon points to?

If I run the cygwin.bat I get some sort of error.
And I don't want to compile everything all over again :X
Logged

Watch me!
Pages: [1] 2 3 ... 17
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.183 seconds with 38 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com