View Single Post
Old 10-20-2012, 10:10 PM   #1
SelfCoded
New Member
 
Join Date: Oct 2012
Posts: 11
SelfCoded is on a distinguished road
Need help with RPI-Engine


Trying the readme on that site.

I'm not sure if I edited the makefile or zone_files.sh correctly. Up to this point the instructions seemed fairly specific, but "look over the makefile in /src and make any changes as needed for your system. Also, make certain that the location of bash is correct in generic/regions/zone_files.sh" was a lot more vague.

I'm ssh'ing to a remote hostmonster server running a 64 linux, if that makes a difference. Hopefully hosting a mud is something that I can do on it if I try hard enough.

This is what happens when I type make

g++ -c -DLINUX -ggdb -w -m64 account.cpp
(etc etc etc etc)
g++ -c -DLINUX -ggdb -w -m64 server.cpp
if test -f ../bin || install -v -d ../bin; then \
g++ -I/usr/local/mysql/include/ -I/usr/include/mysql/ -I/usr/include/openssl/ -I /usr/local/mysql/ -L/Library/ -L/usr/lib/ -L/usr/local/mysql/lib/ -L/usr/lib/ - L/usr/local/mysql/lib/ -o ../bin/server -lz -lmysqlclient -DLINUX -ggdb -w -m64 account.o act.comm.o act.informative.o act.movement.o act.offensive.o act.other .o arena.o auctions.o clan.o comm.o commands.o commerce.o constants.o control.o crafts.o create_mobile.o creation.o db.o destruction.o dwellings.o edit.o employ ment.o fight.o group.o guest.o guides.o handler.o hash.o item_card.o item_tossab le.o limits.o magic.o mobact.o mobprogs.o mysql.o nanny.o net_link.o object_dama ge.o objects.o olc.o perception.o psionics.o roles.o roomprogs.o save.o somatics .o staff.o transformation.o utility.o weather.o wounds.o server.o ; fi
/usr/bin/ld: skipping incompatible /usr/lib//libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib//libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib//libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib//libc.so when searching for -lc
make[1]: Leaving directory `/home2/name/public_html/mud/development/name/rpi-server/pp/src'

I'm not sure if those skipping messages are critical or not. I have a server under the bin folder now, so at least that partially worked.

I ran ./start-server pp, it had issues, asking if I've ran make install yet. So...
Make install yields this
echo "Installing MySQL Databases\nPlease enter your root password:\n"
Installing MySQL Databases\nPlease enter your root password:\n
/usr/local/mysql/bin/mysql --user=root mysql -p < init.sql
/bin/sh: /usr/local/mysql/bin/mysql: No such file or directory
make[1]: *** [install-mysql] Error 127
make[1]: Leaving directory `/home2/name/public_html/mud/development/name/rpi-server/pp/generic/sql'
make: *** [install-mysql] Error 2

That directory doesn't exist, it's true.
In the file Makefile located in the src directory, there are two lines which I'm not sure what to do with.

INCLUDE = -I/usr/local/mysql/include/ -I/usr/include/mysql/ -I/usr/include/openssl/ -I/usr/local/mysql/

LIBDIRS = -L/Library/ -L/usr/lib/ -L/usr/local/mysql/lib/ -L/usr/lib/ -L/usr/local/mysql/lib/

The only directory under /usr/local/ is bin.

Here is everything under /usr/
X11R6@ bin@ include@ java@ kerberos@ lib@ lib64@ libexec@ local/ man@ php@ sbin@ share@ tmp@

... and /
bin@ dev@ etc/ home@ home2/ lib@ lib64@ opt@ proc/ ramdisk/ root/ sbin@ tmp@ usr/ var/

So far I've seen mysql scattered about in various places, but I'm really not sure which ones are the ones I want to point that makefile towards. Since the mySQL databases were created using Cpanel, I'm not really sure what their deal is. Please help this C/C++ linux noob =(

Edit: Just found this. "create the database's tables either via phpMyAdmin, MySQL software or use an online PHP or Perl script." Actually, maybe I didn't get the database stuff done with MySQL after all.

Last edited by SelfCoded : 10-21-2012 at 01:09 AM.
SelfCoded is offline   Reply With Quote