RMS Home | Guide Writing | Test Server | New Servers | Latest Reviews

Author Topic: Updating eathena svn with Cygwin.  (Read 21639 times)

0 Members and 1 Guest are viewing this topic.

Offline Pow

Updating eathena svn with Cygwin.
« on: Jun 20, 2007, 10:37 PM »
This is my first guide, so be nice and give me a good rating if you see fit  ;)

Basically, this guide outlines how to install Cygwin and update your eAthena SVN using it. So, lets get to it?.

Please note : If you do not know what Cygwin is, you probably shouldn't be reading this guide :P


First step

Your first step is to download Cygwin, from here and run it.

Second step

Choose : Install from internet on the first page.

On the second page, leave the install directory how it is (I will explain why later)  and choose if you want it to be available for all users or just yourself.  On the same page,  make sure its set to Unix / Binary. Click next after you have checked over everything.

Third Step

The next two steps are self explanatory so just press next and continue onto the next page.

Forth Step

Choose your mirror, it doesn't really matter which one - they all contain the same files, just pick one closest to you to download the files quickly. Continue to the next step [You will a file download here, this is normal].

Fifth Step

This is where it can get confusing, if you are going to be re-compiling your eAthena along with downloading the latest svn, read this section carefully.

After you have done the above step, you will be presented with this screen


Just a quick FYI, when I state 'SVN' I mean the subversion package, sorry for not clearing this up earlier.

Okay, now - you want to expand the DEVEL section, and select the following things :

If you are going to re-compile aswell as update. (Recommended) :

Select : Make, gcc-core and SVN.

If you are just going to update your SVN (Not recommended)

Select : SVN.

After your have selected them, click next and Cygwin will begin to download and install the packages. At this time you may walk away to get a drink or whatever, and return in about 5-10 minutes depending on your computer hardware and your internet connection.

Sixth Step

When you return and find your Cygwin is all installed (yay~!) you may run it if you wish. When you run it, it will start "changing its name" and doing some things, this is normal.

After it is finished doing that, you will be presented with this screen :



Okay, now the first thing we are going to do is make a directory for the eAthena files to go into, and then we are are going to update our eA. If you are feeling confident and don't need to refer to the picture for guidance, just type in

Code: [Select]
mkdir eathenasvn
And let it do its stuff, then type in
Code: [Select]
cd eathenasvn

This changes the "working directory" to the directory you just made. It MUST be done.

Code: [Select]
svn co http://svn.eathena.ws/svn/ea/trunk .
DO NOT FORGET THE . <-- He is a lonely dot.. please.. do not forget him, he needs a new home :(

If you do not want trunk, just change  "/trunk ." to "/stable ."


Okay, if all of that went right over your head, refer to the picture below and see how its meant to be done ^^




Once the files are finished downloading, log off Cygwin (Press ctrl + D) and then close it. Go into your Cygwin directory and open your /home/user <-- whatever your username is and you will find your eathenasvn folder (Created before.. remember?) with all your updated eathena files inside. Now just config your server, and you are ready to go.


Updating your SVN if you have already done the above

Okay, this bit is super easy - all you have to do is open your cygwin and type in the following  (If you followed this guide to the letter =\) :

Code: [Select]
cd eathensvn
Press enter

Code: [Select]
svn update
Press enter again and then voila, if there is updates - they will be downloaded to your /home/<user>/eathenasvn directory - same place the other ones went.


If you would like a guide on how to compile eathena using Cygwin, please - Do not hesitate to post back here and ask for one, I will be more than happy to help you out.



Pow.


F.A.Q

I will add questions here as I get them with the answers, makes it easier on everybody  :D

Q : BUT SIR, WHY MUST I LEAVE THE DIRECTORY HOW IT IS?!??!
A : Because  UNIX shells (This includes Cygwin) use the space character as a word delimiter. Basically, it doesn't read it properly and causes Cygwin to "crash" when run.

You may actually change the directory if you wish, but it MUST NOT have spaces, or symbols in it.


Q : I get bash:svn command not found when trying to run svn update. How do I fix this?
A : You did not select to install the SVN component while installing cygwin, please return to the setup, expand DEVEL and scroll down and click the little 2 arrows pointing around each other to install it. Continue setup as normal.

Click this link if you are unsure of what I mean.


Q : What in gods name is SVN?!!? Please be more specific
A : SVN is just a shorthand way of saying subversion. It is a version control system developed by Tigris.
« Last Edit: Jun 29, 2007, 02:43 AM by Pow »
Divided we stand, together we fall.
There isn't any god that can save us all
So don't pray on your knees, just beg on your hands
There is no belief in this promised land

Advertisement

Offline takumiyeang

Re: Updating eathena svn with Cygwin.
« Reply #1 on: Jun 21, 2007, 12:56 AM »
Dear Pow ,

As u said , i already did .
But there are still something wrong in the middle of the work  ;D

My problem is ......
- After i have created a folder of "eathenasvn" and wanted to start downloading the files..... then the problem occurs .

It goes like this ....

saying that
bash: svn: command not found


so what should i do now?


thank you ! ;)

appreciate everything u done here !

Offline Pow

Re: Updating eathena svn with Cygwin.
« Reply #2 on: Jun 21, 2007, 01:03 AM »
Updated FAQ, take a look for your answer.
Divided we stand, together we fall.
There isn't any god that can save us all
So don't pray on your knees, just beg on your hands
There is no belief in this promised land

Offline takumiyeang

Re: Updating eathena svn with Cygwin.
« Reply #3 on: Jun 21, 2007, 01:23 AM »
where can i update the FAQ ? u mean the FAQ in this forum or FAQ at the cygwin ? ???

haha was so confused >.<!

sry i am stupid  >.<!!

Offline Pow

Re: Updating eathena svn with Cygwin.
« Reply #4 on: Jun 21, 2007, 01:26 AM »
Faq on this topic, its at the end of my post, the Bold parts are the questions, and the italics are the answers.
Divided we stand, together we fall.
There isn't any god that can save us all
So don't pray on your knees, just beg on your hands
There is no belief in this promised land

Offline takumiyeang

Re: Updating eathena svn with Cygwin.
« Reply #5 on: Jun 21, 2007, 11:21 PM »
hi pow

haha sry to buzz u up again  ;D
i am stuck again >.<!!

as u said , expand the DEVIL and then find the "make gcc-core and svn"  right?

so i cant find those things and i just tick all those things which is available for me to tick  ;D

then i continue the download and installation process .

when everything is done , then the same thing comes out .
saying "bash: svn: command not found "

so what should i do now ?

thx

takumi

Offline Pow

Re: Updating eathena svn with Cygwin.
« Reply #6 on: Jun 22, 2007, 03:51 AM »
Yes...


But they aren't all the same thing... you have to expand (click the + arrow) on DEVEL and then find :

GCC-Core
Make
Subversion (svn)

Divided we stand, together we fall.
There isn't any god that can save us all
So don't pray on your knees, just beg on your hands
There is no belief in this promised land

Offline takumiyeang

Re: Updating eathena svn with Cygwin.
« Reply #7 on: Jun 22, 2007, 09:20 AM »
i have downloaded the
"GCC-Core  C Compiler "

and thats the only GCC-Core that i saw in there but it still doesnt work >.<!!   ???

Offline Pow

Re: Updating eathena svn with Cygwin.
« Reply #8 on: Jun 23, 2007, 01:19 AM »
The svn co command isn't working because you don't have the Subversion package...


Under the same thing you found gcc-core, scroll down until words start to start with the letter "s"

One of them will say Subversion , click the little arrow things and then click next and let it install..
Divided we stand, together we fall.
There isn't any god that can save us all
So don't pray on your knees, just beg on your hands
There is no belief in this promised land

Offline takumiyeang

Re: Updating eathena svn with Cygwin.
« Reply #9 on: Jun 28, 2007, 10:13 PM »
hi pow ,

sorry for replying this late lol .
coz i went for a vacation trip with my family.

about the DEVIL gcc-core i already downloaded it and yet it still not working  >.<!!

is there any other way to do it ?


keen

Offline senzu

Re: Updating eathena svn with Cygwin.
« Reply #10 on: Jun 28, 2007, 10:56 PM »
ok. so here is my problem. I installed it with all the stuff and followed the tutoiral to a t, but then when i try to start cygwin this is what comes up(i had to use a video capture program cause it is up for less then a second) :

Offline Pow

Re: Updating eathena svn with Cygwin.
« Reply #11 on: Jun 28, 2007, 11:43 PM »
ok. so here is my problem. I installed it with all the stuff and followed the tutoiral to a t, but then when i try to start cygwin this is what comes up(i had to use a video capture program cause it is up for less then a second) :


Just do as the picture says. Use windows search function to find cygwin1.dll and delete all the old versions of it if you have any.


And takumi.. read the guide again >.> I can't help you if you don't follow instructions.
Divided we stand, together we fall.
There isn't any god that can save us all
So don't pray on your knees, just beg on your hands
There is no belief in this promised land

Offline senzu

Re: Updating eathena svn with Cygwin.
« Reply #12 on: Jun 29, 2007, 12:51 AM »
new problem >>

Offline Pow

Re: Updating eathena svn with Cygwin.
« Reply #13 on: Jun 29, 2007, 02:31 AM »
Oh my apologies.  :'(


the correct address is :

http://svn.eathena.ws/svn/ea/trunk .
or
http://svn.eathena.ws/svn/ea/branches/stable .

I will update the image when I have a moment.
« Last Edit: Jun 29, 2007, 02:58 AM by Pow »
Divided we stand, together we fall.
There isn't any god that can save us all
So don't pray on your knees, just beg on your hands
There is no belief in this promised land

Offline senzu

Re: Updating eathena svn with Cygwin.
« Reply #14 on: Jun 29, 2007, 02:53 AM »
new problem, there is no such thing as http://svn.eathena.ws/svn/ea/stable .
there is only http://svn.eathena.ws/svn/ea/branches/stable/ for stable :P also, do i need to back up my sql before i update?
edit
oh, so thats a way to re-get the entire server but not actually update the current one >_< ok. so it would work better if i moved my entire server into the cygwin folder where it just downloaded to and then follow the already done so only updating step?
« Last Edit: Jun 29, 2007, 03:04 AM by senzu »