Jump to content

[GUIDE] Ubuntu/Debian/CentOS/RHEL Install Guide


Recommended Posts

  • Replies 289
  • Created
  • Last Reply

Top Posters In This Topic

Applying: ScriptDev2 patch commit

error: patch failed: src/mangosd/Makefile.am:33

error: src/mangosd/Makefile.am: patch does not apply

Patch failed at 0001.

When you have resolved this problem run "git am --resolved".

If you would prefer to skip this patch, instead run "git am --skip".

To restore the original branch and stop patching run "git am --abort".

what it means?

Link to comment
Share on other sites

Applying: ScriptDev2 patch commit

error: patch failed: src/mangosd/Makefile.am:33

error: src/mangosd/Makefile.am: patch does not apply

Patch failed at 0001.

When you have resolved this problem run "git am --resolved".

If you would prefer to skip this patch, instead run "git am --skip".

To restore the original branch and stop patching run "git am --abort".

what it means?

Same error here.

Link to comment
Share on other sites

Same error here.

Rev. 7810 restructured a lot of code, resulting in the conflict. Until SD2 updates their patch, you can temporarily checkout 7809 (which seems to compile cleanly for me) by running:

git checkout 04a788ba038903879b5490cf3f94daf9db2382be

in the MaNGOS root directory, and then following the howto from the last line of "Step 2" in the guide.

Link to comment
Share on other sites

I just wouldn't run MaNGOS as root user neither I'd build it as root user.

And

Original by freghar

apt-get is obsolete in Debian,[...]

thats hm big words ... I use apt every day. Just not being the newest of the new doesn't make things "obsolete".

Just my point of view.

Link to comment
Share on other sites

ScriptDev2 patch for 7812 is on the SD2 SVN. Should work now. However, I'm getting an error when using "git pull" to update my mangos file. It says

You asked me to pull without telling me which branch you
want to merge with, and 'branch..merge' in
your configuration file does not tell me either.  Please
name which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details on the refspec.

If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:

   branch..remote = <nickname>
   branch..merge = <remote-ref>
   remote.<nickname>.url = <url>
   remote.<nickname>.fetch = <refspec>

See git-config(1) for details.

Git is far more confusing than subversion.

Link to comment
Share on other sites

Ubuntu compile problem

In revision 1078 can not apply the patch scriptdev2 and therefore can not compile on linux if scriptdev2 is installation / compilation of 0

Sorry English!:mellow:

-desktop:~/core/testmangos/mangos# git am $(ls src/bindings/ScriptDev2/patches/* | grep -v gz)

Applying: ScriptDev2 patch commit

error: configure.ac: does not match index

error: src/bindings/.gitignore: already exists in working directory

error: src/bindings/Makefile.am: does not match index

error: src/mangosd/Makefile.am: does not match index

Patch failed at 0001.

When you have resolved this problem run "git am --resolved".

If you would prefer to skip this patch, instead run "git am --skip".

To restore the original branch and stop patching run "git am --abort".

-desktop:~/core/testmangos/mangos#

Link to comment
Share on other sites

These assume you got all prereq's for building... just uncomment the 310 section for development version - and don't ask questions - it's unsupported.

getmangos.sh

#!/bin/bash
rm -Rf mangos
git clone git://github.com/mangos/mangos.git
cd mangos
# 310 branch
# git checkout -b 310 origin/310
# git pull git://github.com/mangos/mangos.git 310
# 310branch
mkdir src/bindings/ScriptDev2
svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/[/url] src/bindings/ScriptDev2
git apply `ls src/bindings/ScriptDev2/patches/MaNGOS-*-ScriptDev2.patch`
autoreconf --install --force

buildmangos.sh

#!/bin/bash
cd mangos
mkdir objdir
cd objdir
../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos/dat
make
make install
cd ..
rm -r objdir

enjoy

Link to comment
Share on other sites

ScriptDev2 patch for 7812 is on the SD2 SVN. Should work now. However, I'm getting an error when using "git pull" to update my mangos file. It says
You asked me to pull without telling me which branch you
want to merge with, and 'branch..merge' in
your configuration file does not tell me either.  Please
name which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details on the refspec.

...

If you used the workaround I posted earlier, then you are temporarily outside of the master branch. Do:

git checkout master
git pull

And you should be up to date with the MaNGOS repo again.

Git is far more confusing than subversion.

But far more powerful :)

Link to comment
Share on other sites

These assume you got all prereq's for building... just uncomment the 310 section for development version - and don't ask questions - it's unsupported.

getmangos.sh

#!/bin/bash
rm -Rf mangos
git clone git://github.com/mangos/mangos.git
cd mangos
# 310 branch
# git checkout -b 310 origin/310
# git pull git://github.com/mangos/mangos.git 310
# 310branch
mkdir src/bindings/ScriptDev2
svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/[/url] src/bindings/ScriptDev2
git apply `ls src/bindings/ScriptDev2/patches/MaNGOS-*-ScriptDev2.patch`
autoreconf --install --force

buildmangos.sh

#!/bin/bash
cd mangos
mkdir objdir
cd objdir
../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos/dat
make
make install
cd ..
rm -r objdir

enjoy

Just a note; the "# git pull git://github.com/mangos/mangos.git 310" is useless in your script ...

Link to comment
Share on other sites

Uhm.. I'm having a few problems with the installation. I've got a Ubuntu VPS.. when I try to do this:

Step 7 - Realmlist

Where going to update the realm name and IP so it can be accessed from other computers.

Code:

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET name = 'Your Realm Name' WHERE id = 1;

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET address = 'Your IP' WHERE id = 1;

I get the following error

You have an error in your SQL Syntax; check the manual (Blah blah)

So I decided okay, lets just skip that step for the moment and go onto the next one.. So I opend up filezilla, and enterd my IP, and my password.. Didn't login, "Error, could not connect to server...Trying to reconnect in 5 seconds".. So I changed the port to 21... Still no luck. So I was wondering if there was a FTP server that I had to download for the ubuntu? Maybe?.. To be honest I don't quite know if the SQL databases have worked... It just pretty much shows this:

~# mysql -p'YOUR PASSWORD HERE' mangos < mangos/sql/mangos.sql

~# mysql -p'YOUR PASSWORD HERE' characters < mangos/sql/characters.sql

~# mysql -p'YOUR PASSWORD HERE' realmd < mangos/sql/realmd.sql

~# mysql -p'YOUR PASSWORD HERE' scriptdev2 < scriptdev2/sql/scriptdev2_script_full.sql

So it shows exactly that. Don't quite know if that has created them, etc. etc. :)

Thanks in advance! Hope for a quick reply, if nothing can someone message me on MSN:

Thanks!

-Keanu

Link to comment
Share on other sites

Anyone? Can anyone give me a hand with a few of my problems?.. Sorry to keep bugging, but I just need to get it sorted..

-Keanu

Let me try to troubleshoot some of your problems.

You'll need the package, openssh-server, installed on Ubuntu, if you havn't installed it manually.

 $ sudo apt-get install openssh-server 

Ubuntu doesn't have it by default on desktop and alternate versions (server version might have it on by default). That'll get you connected via sftp using Filezilla. Don't forget to set your port back to 22.

The third quote in your post #32, I believe, means that you've successfully populated the databases with basic data. You'll still have to update them though.

That's all I could help with at least for now. My knowledge with SQL is still extremely limited. :)

Link to comment
Share on other sites

Thank you so much for your reply, I will give that all a try now! :D

-Keanu

// Update

Apparantly when I typed in

$ sudo apt-get install openssh-server

openssh-server is already the newest version? but im currently using the FileZilla thats on XAMPP, so I have just downloaded a stand-alone copy of it... You're a genius! All working for that part. Okay, so I got that all working, what do you reckon the problem would be with the SQL commands:

Step 7 - Realmlist

Where going to update the realm name and IP so it can be accessed from other computers.

Code:

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET name = 'Your Realm Name' WHERE id = 1;

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET address = 'Your IP' WHERE id = 1;

It just won't sorta execute them?... I'm wondering if I would have to install some form of PHPMyAdmin and edit the SQL like that, may not be the safest way, but.. Certainly get it done. Then delete it afterwards?... Do you think that would work?

One last thing aswell, the bin folder didn't exist in my mangos folder? so I created it. That all okay? Directory of it being: "/(username)/mangos/bin"

Thanks in advance!

-Josh

Link to comment
Share on other sites

I need to do an update for ya~

What was origionally this:

We will use this in place of a Windows/Mac MySQL application.

Create the MaNGOS database

Code:

~# mysql -p'YOUR PASSWORD HERE' < mangos/sql/create_mysql.sql

~# mysql -p'YOUR PASSWORD HERE' < scriptdev2/sql/scriptdev2_create_database.sql

~# mysql -p'YOUR PASSWORD HERE' scriptdev2 < scriptdev2/sql/scriptdev2_create_structure_mysql.sql

Now needs to change to this:

We will use this in place of a Windows/Mac MySQL application.

Create the MaNGOS database

Code:

~# mysql -p'YOUR PASSWORD HERE' < mangos/sql/create_mysql.sql

~# mysql -p'YOUR PASSWORD HERE' < mangos/src/bindings/ScriptDev2/sql/scriptdev2_create_database.sql

~# mysql -p'YOUR PASSWORD HERE' scriptdev2 < mangos/src/bindings/ScriptDev2/sql/scriptdev2_create_structure_mysql.sql

The things that have changed is, putting "ScriptDev2" with its caps, linux is a bitch for that. Thats why I was having so many problems. I'm running through it with phpmyadmin now getting the db working. Hopefully I can do it. Thanks for the brilliant guide and I will keep posting if I find any problems!

-Keanu

Link to comment
Share on other sites

Hi, when I try this:

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET name = 'Your Realm Name' WHERE id = 1;

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET address = 'Your IP' WHERE id = 1;

It doesn't work, it says:

-bash: UPDATE: No such file or directory

Thx for the great tuto.

Link to comment
Share on other sites

Hi, when I try this:

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET name = 'Your Realm Name' WHERE id = 1;

~# mysql -p'YOUR PASSWORD HERE' realmd < UPDATE realmlist SET address = 'Your IP' WHERE id = 1;

It doesn't work, it says:

-bash: UPDATE: No such file or directory

Thx for the great tuto.

Follow from step 7 again, I fixed it.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use