PDA

View Full Version : Ubuntu Instalation


aragon
08-10-2007, 10:07 PM
Hi,
I decided change bsd to Ubuntu, I've installed perl, Mysql-server5.0,etc.
When I try to compile the source with "make" I get the following error:
[QUOTE]
root@ubuntu:/home/eqemu# make
make -C EMuShareMem
make[1]: Entering directory `/home/eqemu/EMuShareMem'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/eqemu/EMuShareMem'
make -C world
make[1]: mysql_config: Command not found
make[1]: Entering directory `/home/eqemu/world'
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -I../common/SocketLib -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2 -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE client.cpp -o client.o
In file included from ../common/database.h:26,
from ../common/shareddb.h:6,
from worlddb.h:21,
from client.cpp:39:
../common/dbcore.h:9:19: error: mysql.h: No such file or directory

aragon
08-10-2007, 10:12 PM
[CODE]../common/dbcore.h:25: error:

aragon
08-10-2007, 10:13 PM
[CODE]
../common/dbcore.h:25: error:

gernblan
08-16-2007, 04:15 AM
find out where it's looking for mysql.h and either put it there or make a symbolic link. you have also need the mysql development stuff installed.

I can't give you specifics because I use gentoo mostly on where ubuntu puts it's stuff but your issue is that you need to make sure that file can be found one way or another.

BWStripes
08-16-2007, 06:27 AM
gernblan is right, mysqldev needs to be installed.

The package name is libmysqlclientXX.dev think the latest number (XX) for Ubuntu was 15. As usual:
sudo apt-get install libmysqlclient15-dev

And you're away.

aragon
08-17-2007, 11:36 AM
Did the suggested thank you. Bu now im getting the following error:
make -C EMuShareMem
make[1]: se ingresa al directorio `/home/eqemu/EQEmu-0.7.0-1034/EMuShareMem'
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -DDEBUG=1 -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX MMFMutex.cpp -o MMFMutex.o
gcc: error trying to exec 'cc1plus': execvp: No existe el fichero ó directorio
make[1]: *** [MMFMutex.o] Error 1
make[1]: se sale del directorio `/home/eqemu/EQEmu-0.7.0-1034/EMuShareMem'
make: *** [all] Error 2
root@servidor:/home/eqemu/EQEmu-0.7.0-1034#

Any Idea?

BWStripes
08-19-2007, 10:17 PM
Ah, you're missing another another package :)

I made a list when I installed Ubuntu in my Linux guide. This is probably overkill, but works for me.

Make sure you've got the following installed:

cpp (auto-selects other packages)
cvs, and cvsnt (If you plan to update the database on Linux)
g++ (auto-selects other packages)
gcc (auto-selects other packages)
libmysqlclient15-dev
libio-stringy-perl
libperl-5.8
libperl-dev
mysql-client
mysql-server (auto-selects other packages)
perl
zlib1g
zlib1g-dev

Optional:
wine (required for running minilogin under emulation)

gernblan
08-22-2007, 02:15 PM
Yes, those packages should cover it.