Jump to content

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


Recommended Posts

why would you ask for scriptdev help on mangos forum??

www.scriptdev2.com

Because its part of the guide.

Make sure you type EXACTLY this. If you're using Putty, CTRL+C it from this forum on your pc, then right click in putty when the green type-bar is in the right place, and it will paste it for you.

~# cd mangos

~# svn co https://ScriptDev2.svn.sourceforge.net/svnroot/ScriptDev2/ src/bindings/ScriptDev2

Make sure your cd is mangos aswell. ^^

Any more problems, follow what Davemm said, and go onto Scriptdev2.com

-Keanu

Link to comment
Share on other sites

  • Replies 289
  • Created
  • Last Reply

Top Posters In This Topic

original code

svn co [url]https://ScriptDev2.svn.sourceforge.net/svnroot/[/url][color="Red"]S[/color]criptDev2/ src/bindings/ScriptDev2/

work for me

svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/[/url][color="Blue"]s[/color]criptdev2/ src/bindings/ScriptDev2/

thanks

Link to comment
Share on other sites

For some reason there are now two patches in the SD2 Patches folder.

git apply $(ls src/bindings/ScriptDev2/patches/* | grep -v gz | zenity --list --title "Choose a patch" --column "Files")

This will offer a Zenity dialog to allow the user to choose the correct one. (Using "git apply" because "git am" is not cooperating.)

I don't know how well this works in an ssh into a remote server (I'm doing this on localhost,) and I don't know if there's a similar program to zenity that uses a text GUI in the terminal.

Link to comment
Share on other sites

original code

svn co [url]https://ScriptDev2.svn.sourceforge.net/svnroot/[/url][color="Red"]S[/color]criptDev2/ src/bindings/ScriptDev2/

work for me

svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/[/url][color="Blue"]s[/color]criptdev2/ src/bindings/ScriptDev2/

thanks

same here capital S was screwing with it

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

Excellent, I appreciate this.

Link to comment
Share on other sites

  • 2 weeks later...
how should i know where to get the tools?:(

i searched the site, but no section that is named like that or something...

in the folder 'mangos', you have a folder 'contrib', here you will have folders with the files... just find what you need...

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

Help :S

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

Help :S

nothing to do with mangos, ask/search at scriptdev2 forums

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

Help :S

Use "apply" command instead of "am"

or

git am $(ls src/bindings/ScriptDev2/patches/MaNGOS-XXXX-ScriptDev2.patch | grep -v gz) 

Link to comment
Share on other sites

Guys there is 2 ScriptDev patches you need to look for the patch you need to for your version of mangos. Other thing would be not use am as it tells you the email addy is wrong with the patch and does not compile then. IF you git apply it works <fancy that but yeah. Hope it helps the linux guys with there compile

Link to comment
Share on other sites

Hi,

This is a good guide that helped me get started although there are pathing errors in some of the commands.

I'm a noob and I was hoping someone who is more knowledgable can shed some light on some questions I have.

1. The source from "git clone git://github.com/mangos/mangos.git"

Is this the latest version? It supports 3.0.9 or 3.1.3.

2. The src/bindings/ScriptDev2 patches are for 3.0.9 and 3.1.3 respectively I suppose.

That is MaNGOS-7356-ScriptDev2.patch = 3.0.9

and MaNGOS-7842-ScriptDev2.patch = 3.1.3.

Am I correct is saying that?

Sorry if this has been answered elsewhere. I have searched and cant seem to find a place that explains the versions vs patch numbers in detail (it's the same with ascent servers and numerous dbs).

Link to comment
Share on other sites

Hi there :)

I'm trying to make my own server and on step 3:

sudo git am src/bindings/ScriptDev2/patches/MaNGOS-7356-ScriptDev2.patch

But this is the output:

eax@shodan[~/Build/mango/mangos] ~$ sudo git am src/bindings/ScriptDev2/patches/MaNGOS-7356-ScriptDev2.patch
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".

I am very new to this whole thing so I don't understand most of the ideas given in this thread.

Any definitive answers

Thanks in advance :)

Link to comment
Share on other sites

Hello.

At step 6 I get the following error when using this command:

sudo mysql -pmypass < ScriptDev2/sql/ScriptDev2_create_database.sql

I get this error:

bash: ScriptDev2/sql/ScriptDev2_create_database.sql: No such file or directory

I skipped the patching of ScriptDev2 originally because it failed. Can someone tell me what to do please? :)

Also, how do I find out how Revision I am using?

Link to comment
Share on other sites

can you help me?

it say's me "unexpected EOF"

athen079:/home/mangos# git clone git://github.com/mangos/mangos.git
defaulting to local storage area
fatal: unexpected EOF
clone-pack from 'git://github.com/mangos/mangos.git' failed.

don't know why.... please help me

Link to comment
Share on other sites

can you help me?

it say's me "unexpected EOF"

athen079:/home/mangos# git clone git://github.com/mangos/mangos.git
defaulting to local storage area
fatal: unexpected EOF
clone-pack from 'git://github.com/mangos/mangos.git' failed.

don't know why.... please help me

Possibly a temporary server error. Try again today, since you posted it yesterday, if you hadn't already succeeded.

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