EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   EQemu in a box? Two hours or less - Yet Another Tutorial (https://www.eqemulator.org/forums/showthread.php?t=35116)

c0ncrete 12-12-2012 11:06 AM

that should really be self explanatory.

the binaries your shell script is looking for do not exist where it is looking for them.

krazycrakker 12-12-2012 06:37 PM

ok how do i copy then if u dont mind im new to linux

lerxst2112 12-12-2012 06:55 PM

Just glancing at the script, this part should have made links to them:

Code:

ln -s /home/eqemu/source/EQEmuServer/EMuShareMem/libEMuShareMem.so /home/eqemu/server/libEMuShareMem.so
ln -s /home/eqemu/source/EQEmuServer/world/world /home/eqemu/server/world
ln -s /home/eqemu/source/EQEmuServer/zone/zone /home/eqemu/server/zone
ln -s /home/eqemu/source/EQEmuServer/EQEmuLoginServer/EQEmuLoginServer /home/eqemu/server/EQEmuLoginServer
ln -s /home/eqemu/source/EQEmuServer/eqlaunch/eqlaunch /home/eqemu/server/eqlaunch
ln -s /home/eqemu/source/EQEmuServer/chatserver/chatserver /home/eqemu/server/chatserver
ln -s /home/eqemu/source/EQEmuServer/mailserver/mailserver /home/eqemu/server/mailserver

If the compile failed for any reason, or that part of the script failed then you would have issues. If the files actually compiled correctly and exist in the directory then you would probably just need to run those lines again in a root shell.

krazycrakker 12-12-2012 07:14 PM

ok ill try that thank you

Thonatos 01-05-2013 01:56 AM

Quote:

Originally Posted by krazycrakker (Post 215172)
i started up the server did sudo su- ran ./startup.sh

i didnt get the denied stuff just this

Starting Login Server...
Waiting about 5 seconds before starting World Server...
./startup.sh: line 13: ./EQEmuLoginServer: No such file or directory
Waiting 10 seconds before starting the zones via launcher
./startup.sh: line 18: ./world: No such file or directory
The server is mostly ready... give it a couple of minutes
to load stuff from the databases for the zones and users
can start logging in.
sysadmin@EQEMU-SERVER:/home/eqemu/server$ ./startup.sh: line 22: ./eqlaunch: No such file or directory


Yea, ran into the same errors.. noticed in the log file.. CPU errors.. 64 bit vs 32 bit perhaps ??
Testing...

c0ncrete 01-05-2013 02:07 AM

Quote:

Originally Posted by Thonatos (Post 215977)
Yea, same here.. seems that some of the stuff didn't compile, not seeing errors however, rerunning now....

Did you have any luck fixing it krazycrackker ??

if you got the same messages you quoted in your response, then you got errors

Quote:

No such file or directory
you can either move/copy the binaries where they need to go or create links to them as lerxst2112 suggested.

Thonatos 01-05-2013 10:35 AM

Quote:

Originally Posted by c0ncrete (Post 215978)
if you got the same messages you quoted in your response, then you got errors



you can either move/copy the binaries where they need to go or create links to them as lerxst2112 suggested.

Files do not exists... the compile apparently bombs out... was using a 64 bit machine vs. 32... reviewed some of the logs and found cpu type errors...

Rebuilding this weekend with 32 bit, will report back.

I looked for the files in the directories, as well as running an updatedb and locate and manually searching etc... not there... not created.

--> my fault, for going with 64 bit I presume..

Thonatos 01-05-2013 07:51 PM

Quote:

Originally Posted by Thonatos (Post 215986)
Rebuilding this weekend with 32 bit, will report back.

This was, in fact, the issue at hand.

Moving onwards and upwards at this point.. now to try and login ;)

prickle 01-20-2013 08:07 PM

new build instructions for Cmake

In addition to installing the other packages, you'll need to install cmake. Ubuntu/Debian users will run:

Code:

sudo apt-get install cmake
after checking out the source from SVN, i like to copy the source to a build directory and in there I run:
Code:

cmake -i
cmake -i is to allow you to alter any build flags and enable/disable other EQEmu features (e.g. bots).

If you're on an AMD64 system you'll want to say "yes" to the advanced options. This is to allow you to disable the -O2 and -O3 optimizations that mess up the stringstream stuff that plague us. For example:
Code:

$ cmake -i
Would you like to see advanced options? [No]:yes
Please wait while cmake processes CMakeLists.txt files....

...bunch of stuff that doesn't need to change...

...then...

Variable Name: CMAKE_CXX_FLAGS_RELEASE
Description: Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).
Current Value: -O3 -DNDEBUG
New Value (Enter to keep current value):

On this one I change it to "-march=native -DNDEBUG". This sets the GCC CPU optimizations without the -O2/-O3 optimization enhancements, if you will.

Then:
Code:

Variable Name: CMAKE_CXX_FLAGS_RELWITHDEBINFO
Description: Flags used by the compiler during Release with Debug Info builds.
Current Value: -O2 -g
New Value (Enter to keep current value):

I change this one to just "-g".

Again later:
Code:

Variable Name: CMAKE_C_FLAGS_RELEASE
Description: Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).
Current Value: -O3 -DNDEBUG
New Value (Enter to keep current value):

Same as CMAKE_CXX_FLAGS_RELEASE, I set this to "-march=native -DNDEBUG".

Last -O2 entry:
Code:

Variable Name: CMAKE_C_FLAGS_RELWITHDEBINFO
Description: Flags used by the compiler during Release with Debug Info builds.
Current Value: -O2 -g
New Value (Enter to keep current value):

Like CMAKE_CXX_FLAGS_RELWITHDEBINFO, I set this to just "-g".

Finally, if you want "Bots":
Code:

Variable Name: EQEMU_ENABLE_BOTS
Description: Enable Bots
Current Value: OFF
New Value (Enter to keep current value):

Change that to "ON" and continue to the end.

After "cmake -i" finishes, to compile the build:
Code:

make clean && make
All of the built binaries will be in the Bin/ directory. At this point, I usually shut the server down, create a back up of my existing server directory, and then run:
Code:

cp Bin/* <server directory>
This will copy everything in Bin/ to the server's directory. It will have libCommon.a in there. This file can be removed as it's only needed during compile, as was explained to me not too long ago.

***Edit: I forgot, if you're on a multi-core system you can use "make -jx" (instead of just "make") where x is the number of CPU cores you want to use during compile. This greatly speeds up the compile. For example, on my quad-core system I use "make -j3" to use 3 cores, because my one of my cores is usually really busy with MySQL queries.

brainiac2k 02-23-2013 07:09 PM

I built a vm enviornment with Vagrant, loosely based on this.

http://www.eqemulator.org/forums/sho...d.php?p=218729


All times are GMT -4. The time now is 01:37 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.