Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Yandex

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Ubuntu System Errors
Forum Rules | Mark all | Recent Posts

Ubuntu System Errors
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2 next >>
Post is unread #1 Dec 13, 2006, 6:32 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

Hrmm how to start it, well I grabed Ubuntu version 6.06.1 I386
I snagged the afk version 1.8
I accepted the defaults as fine for now, and did a make clean....
needless to say it was far from impressed...I am using g++ ver: 4:4.0.3-1
Here is the output:

ryan@Ryan-Server:~/afkmud/src$ make clean
rm -f o/*.o afkmud afkmud.def afkmud.exp core resolver resolver.o
make all
make[1]: Entering directory `/home/ryan/afkmud/src'
make -s afkmud
make[2]: Entering directory `/home/ryan/afkmud/src'
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/archery.o....
Compiling o/areaconvert.o....
Compiling o/auction.o....
Compiling o/ban.o....
Compiling o/bits.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/calendar.o....
Compiling o/channels.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
In file included from comm.c:63:
mccp.h:28:18: error: zlib.h: No such file or directory
mccp.h:43: error: ISO C++ forbids declaration of ‘z_stream’ with no type
mccp.h:43: error: expected ‘;’ before ‘*’ token
comm.c: In function ‘bool write_to_descriptor(DESCRIPTOR_DATA*, char*, int)’:
comm.c:270: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:272: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:273: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:275: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:277: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:278: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:280: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:282: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:282: error: ‘Z_SYNC_FLUSH’ was not declared in this scope
comm.c:282: error: ‘deflate’ was not declared in this scope
comm.c:284: error: ‘Z_OK’ was not declared in this scope
comm.c:288: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:326: error: ‘struct mccp_data’ has no member named ‘out_compress’
make[2]: *** [o/comm.o] Error 1
make[2]: Leaving directory `/home/ryan/afkmud/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ryan/afkmud/src'
make: *** [clean] Error 2

Being as I am far from a educated coder, I will defer to those who are so much more
knowledgable then me.

Lazerous,
The Realm of Draenor
AKA
ryan_rae@hotmail.com

       
Post is unread #2 Dec 13, 2006, 8:13 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Your system is missing the zlib library. You'll need to have whatever package management Ubuntu has go get you the zlib and zlib-devel packages. Then the code will continue past that point.
       
Post is unread #3 Dec 14, 2006, 5:19 am
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

Thank you samson, I will take a look tonite when I get back from work, but thanks alot!
Judging by all I have seen in here, looks like this will be a rewarding experience.
       
Post is unread #4 Dec 14, 2006, 6:22 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

Well ok that worked fine for compiling, it was happy, now the
next thing the install says is this:

nohup ./startup &

Well from the /src I did this to an interesting and very
vague error....

ryan@Ryan-Server:~/afkmud$ nohup ./startup &
[1] 6909
nohup: appending output to `nohup.out'
nohup: cannot run command `./startup': No such file or directory
ryan@Ryan-Server:~/afkmud$ cd src
[1]+ Exit 127 nohup ./startup (wd: ~/afkmud)
(wd now: ~/afkmud/src)

I know this is a bad start but its been a long time since I played with linux so please bare with me.
       
Post is unread #5 Dec 14, 2006, 6:23 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

So I figure the compile went fine and maybe I am just using the wrong syntax to start up the mud or from the wrong directory etc...
       
Post is unread #6 Dec 14, 2006, 6:47 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Try that command when you're in the src directory.
       
Post is unread #7 Dec 14, 2006, 7:23 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

Did that same result:

ryan@Ryan-Server:~/afkmud/src$ nohub ./starup &
[1] 8520
bash: nohub: command not found
ryan@Ryan-Server:~/afkmud/src$
       
Post is unread #8 Dec 14, 2006, 7:29 pm   Last edited Dec 14, 2006, 7:29 pm by Zeno
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

The command is "nohup" not "nohub", and it's "startup" not "starup".
       
Post is unread #9 Dec 14, 2006, 7:39 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

ryan@Ryan-Server:~/afkmud/src$ nohup ./startup &
[3] 8994
[2] Exit 127 hohup ./startup
ryan@Ryan-Server:~/afkmud/src$ nohup: appending output to `nohup.out'
nohup: cannot run command `./startup': No such file or directory
       
Post is unread #10 Dec 14, 2006, 7:43 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Last I checked, AFKMUD comes with a startup script. Check to make sure it's there.
       
Post is unread #11 Dec 14, 2006, 7:51 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

Oh its there alright...no doubt there I really am confused by all this, I mean sorry about the minor mistake but I mean it isn't like its rocket science, its not like I haven't ever touched linux or dos, I am a old dos user, I did unix sco versionin college and touched on fedora recently, and now I am playin with ubuntu...I mean I did look into the startup script file its there and its lookin fine to me as well...it rather odd to be honest..here is a show of the files....

act_comm.c comm.c hotboot.h mudcfg.h resolver.o
act_info.c comments.c i3.c mud_comm.c save.c
act_move.c connhist.c i3cfg.h mud.h sha256.c
act_obj.c connhist.h i3.h mudmsg.c sha256.h
act_wiz.c const.c iafk.c mud_prog.c shell.c
afkmud db.c idale.c mud_prog.h shell.h
alias.h deity.c imc.c mxp.h ships.c
archery.c deity.h imccfg.h new_auth.c ships.h
areaconvert.c dependencies.d imc.h new_auth.h shops.c
auction.c dns.h imm_host.c nohup.out shops.h
auction.h editor.c imm_host.h o skills.c
ban.c editor.h interface.c olc.h skyship.c
ban.h environment.c interp.c olcmob.c skyship.h
bet.h environment.h ismaug.c olcobj.c slay.c
bits.c event.c language.h olcroom.c slay.h
bits.h event.h liquids.c overland.c startup
boards.c event_handler.c liquids.h overland.h tables.c
boards.h features.c log pfiles.c track.c
build.c fight.c magic.c pfiles.h treasure.c
calendar.c fight.h Makefile player.c treasure.h
calendar.h finger.c mccp.h polymorph.c update.c
channels.c finger.h md5.c polymorph.h vg_suppress.supp
channels.h grind md5.h qstart web.h
clans.c handler.c misc.c rent.c websvr.c
clans.h hashstr.c mspecial.c renumber.c
color.c help.c mspecial.h reset.c
color.h help.h msp.h resolver
commands hotboot.c mudcfg.c resolver.c

hrmmm...just I am not familiar with the codebase nor the commands..so please have patience, I am as you know in my 30's and not a complete newbie to this stuff
       
Post is unread #12 Dec 14, 2006, 7:52 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

dang only part came out sec...
       
Post is unread #13 Dec 14, 2006, 7:53 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

act_comm.c comm.c hotboot.h mudcfg.h resolver.o
act_info.c comments.c i3.c mud_comm.c save.c
act_move.c connhist.c i3cfg.h mud.h sha256.c
act_obj.c connhist.h i3.h mudmsg.c sha256.h
act_wiz.c const.c iafk.c mud_prog.c shell.c
afkmud db.c idale.c mud_prog.h shell.h
alias.h deity.c imc.c mxp.h ships.c
archery.c deity.h imccfg.h new_auth.c ships.h
areaconvert.c dependencies.d imc.h new_auth.h shops.c
auction.c dns.h imm_host.c nohup.out shops.h
auction.h editor.c imm_host.h o skills.c
ban.c editor.h interface.c olc.h skyship.c
ban.h environment.c interp.c olcmob.c skyship.h
bet.h environment.h ismaug.c olcobj.c slay.c
bits.c event.c language.h olcroom.c slay.h
bits.h event.h liquids.c overland.c startup
boards.c event_handler.c liquids.h overland.h tables.c
boards.h features.c log pfiles.c track.c
build.c fight.c magic.c pfiles.h treasure.c
calendar.c fight.h Makefile player.c treasure.h
calendar.h finger.c mccp.h polymorph.c update.c
channels.c finger.h md5.c polymorph.h vg_suppress.supp
channels.h grind md5.h qstart web.h
clans.c handler.c misc.c rent.c websvr.c
clans.h hashstr.c mspecial.c renumber.c
color.c help.c mspecial.h reset.c
color.h help.h msp.h resolver
commands hotboot.c mudcfg.c resolver.c
       
Post is unread #14 Dec 14, 2006, 7:54 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

Thats all of them...
       
Post is unread #15 Dec 14, 2006, 8:05 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Double check and make sure you're in the correct directory. Then just try ./startup & and let me know if it works.
       
Post is unread #16 Dec 14, 2006, 8:15 pm
Go to the top of the page
Go to the bottom of the page

kiasyn
Magician
GroupMembers
Posts121
JoinedJun 30, 2006

Additionally you might want to try using Talon to receive direct help. It can be a lot faster. :P
       
Post is unread #17 Dec 14, 2006, 8:26 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

The startup script is there. Or at least it better be :P

Are you positive the entire codebase compiled cleanly? Usually I only see that nohup error when the codebase binary is missing due to a failed compile I didn't notice. Unless for some reason you really don't have a startup script and it's complaining about that.
       
Post is unread #18 Dec 14, 2006, 8:32 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

Ok for Zeno:

ryan@Ryan-Server:~/afkmud/src$ ./startup &
[1] 6345
ryan@Ryan-Server:~/afkmud/src$ bash: ./startup: /bin/csh: bad interpreter: No su ch file or directory

Now for Samson:

ryan@Ryan-Server:~/afkmud/src$ make clean
rm -f o/*.o afkmud afkmud.def afkmud.exp core resolver resolver.o
make all
make[1]: Entering directory `/home/ryan/afkmud/src'
make -s afkmud
make[2]: Entering directory `/home/ryan/afkmud/src'
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/archery.o....
Compiling o/areaconvert.o....
Compiling o/auction.o....
Compiling o/ban.o....
Compiling o/bits.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/calendar.o....
Compiling o/channels.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
Compiling o/comments.o....
Compiling o/connhist.o....
Compiling o/const.o....
Compiling o/db.o....
Compiling o/deity.o....
Compiling o/editor.o....
Compiling o/environment.o....
Compiling o/event.o....
Compiling o/event_handler.o....
Compiling o/features.o....
Compiling o/fight.o....
Compiling o/finger.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/help.o....
Compiling o/hotboot.o....
Compiling o/iafk.o....
Compiling o/idale.o....
Compiling o/imm_host.o....
Compiling o/interface.o....
Compiling o/interp.o....
Compiling o/ismaug.o....
Compiling o/liquids.o....
Compiling o/magic.o....
Compiling o/md5.o....
Compiling o/misc.o....
Compiling o/mspecial.o....
Compiling o/mudcfg.o....
Compiling o/mud_comm.o....
Compiling o/mud_prog.o....
Compiling o/new_auth.o....
Compiling o/olcmob.o....
Compiling o/olcobj.o....
Compiling o/olcroom.o....
Compiling o/overland.o....
Compiling o/pfiles.o....
Compiling o/player.o....
Compiling o/polymorph.o....
Compiling o/rent.o....
Compiling o/renumber.o....
Compiling o/reset.o....
Compiling o/save.o....
Compiling o/sha256.o....
Compiling o/ships.o....
Compiling o/shops.o....
Compiling o/skills.o....
Compiling o/skyship.o....
Compiling o/slay.o....
Compiling o/tables.o....
Compiling o/track.o....
Compiling o/treasure.o....
Compiling o/update.o....
Generating dependency file ...
Done compiling mud.
make[2]: Leaving directory `/home/ryan/afkmud/src'
make -s resolver
make[2]: Entering directory `/home/ryan/afkmud/src'
Done compiling resolver.
make[2]: Leaving directory `/home/ryan/afkmud/src'
make[1]: Leaving directory `/home/ryan/afkmud/src'
[1]+ Exit 126 ./startup
ryan@Ryan-Server:~/afkmud/src$
       
Post is unread #19 Dec 14, 2006, 8:34 pm
Go to the top of the page
Go to the bottom of the page

Lazerous

GroupMembers
Posts79
JoinedAug 10, 2005

#! /bin/csh -f

# Set the port number.
set port = 9500
if ( "$1" != "" ) set port="$1"

# Change to area directory.
cd ../area

# Set limits.
nohup
if ( -e shutdown.txt ) rm -f shutdown.txt
limit coredumpsize unlimited
limit stacksize unlimited

while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = ../log/$index.log
if ( ! -e $logfile ) break
@ index++
end

# Record starting time
date > $logfile
date > ../area/boot.txt

# Run AFKMud.
# Check if already running
set matches = `netstat -an | grep ":$port " | grep -c LISTEN`
if ( $matches >= 1 ) then
# Already running
echo Port $port is already in use.
exit 0
endif
../src/afkmud $port >&! $logfile

if ( -e core ) then
\mv core ../src
cd ../src
date > ../crash/$index.crash
gdb -batch -x commands afkmud core >> ../crash/$index.crash
#rm -f core
cd ../area
endif

# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
exit 0
endif
sleep 5
end



startup is there....
       
Post is unread #20 Dec 14, 2006, 8:41 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

ryan@Ryan-Server:~/afkmud/src$ bash: ./startup: /bin/csh: bad interpreter: No such file or directory


This would seem to be part of the problem. It's missing the csh interpreter. You can either install that, or see if the included startup.sh file will work for you instead. startup.sh is supposed to work in bash and was provided by another member here as an experiment. It seemed to work ok for me when I last tried it.
       
Pages:<< prev 1, 2 next >>