Updating eathena svn with Cygwin.

Started by Pow, Jun 20, 2007, 10:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pow

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

mkdir eathenasvn

And let it do its stuff, then type in
cd eathenasvn

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

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 =\) :

cd eathensvn

Press enter

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.
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

takumiyeang

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 !

Pow

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

takumiyeang

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  >.<!!

Pow

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

takumiyeang

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

Pow

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

takumiyeang

i have downloaded the
"GCC-Core  C Compiler "

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

Pow

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

takumiyeang

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

senzu

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) :

Pow

Quote from: senzu 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) :


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

senzu


Pow

#13
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.
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

senzu

#14
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?