Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ complete noob with swr2.0 compilation problem
complete noob with swr2.0 compilation problem
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Achan
(7 posts) Bio
|
Date
| Wed 30 Aug 2006 03:30 AM (UTC) Amended on Wed 30 Aug 2006 03:37 AM (UTC) by Achan
|
Message
| I never tried to set up a mud before, coded a little from time to time but never did anything like this. Anyway after looking through this forum I got answers to a lot of problems I had.
I'm running SWR 2.0 and I have no 'startup' file anywhere. I have a run-swr which, when I tried to run, gives me a "permission denied".
I do have a "swr" file though, in the swr/bin directory (which appears in green and has a * after it when I type ls). I copied it to the src directory also.
So I go to the area directory and type
"../src/swr 1234 &"
or
"nohup ../src/swr 1234 &" and then it almost works, it gives me this:
Wed Aug 30 13:08:40 2006 :: Loading socials
Wed Aug 30 13:08:40 2006 :: Loading skill table
Wed Aug 30 13:08:40 2006 :: Sorting skill table...
Wed Aug 30 13:08:40 2006 :: Initializing request pipe
Wed Aug 30 13:08:40 2006 :: Initializing random number generator
Wed Aug 30 13:08:40 2006 :: Setting time and weather
Wed Aug 30 13:08:40 2006 :: Assigning gsn's
Wed Aug 30 13:08:40 2006 :: Reading in area files...
(help.are)
limbo
mobiles
objects
Wed Aug 30 13:08:40 2006 :: Fixing exits
Wed Aug 30 13:08:40 2006 :: Loading boards
Wed Aug 30 13:08:40 2006 :: ../boards/mail
Wed Aug 30 13:08:40 2006 :: ../boards/gnet
Wed Aug 30 13:08:40 2006 :: Loading clans
Wed Aug 30 13:08:40 2006 :: Loading clans...
Wed Aug 30 13:08:40 2006 :: $
Wed Aug 30 13:08:40 2006 :: Done clans
Wed Aug 30 13:08:40 2006 :: Loading bans
Wed Aug 30 13:08:40 2006 :: Loading corpses
This is so far the best I ever got it to work. After those, it waits until I hit return and then it produces a core dump.
[1]+ Segmentation fault (core dumped) nohup ../src/swr 1234
The SWR 2.0 I downloaded comes with almost nothing and I think that's the main problem (there are no areas other than the bare necessities, which are limbo, an .o.are area which mostly contains empty voids, and some helpfiles).
There's no players directory (and no gods directory either) and I think that is why it dies on the 'Loading corpses' part... anyways, that's all I know about my problem, any advice?
I'm not running it with Cygwin, I'm running it on a real server. It's Linux I think, again, I'm a noob and don't know much. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Wed 30 Aug 2006 03:41 AM (UTC) |
Message
| Looks like it crashed. Use gdb to debug it, see the gdb guide Nick made for details. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Achan
(7 posts) Bio
|
Date
| Reply #2 on Wed 30 Aug 2006 03:48 AM (UTC) |
Message
| Thanks, but I don't understand the guide hehe.
I tried typing "gdb (path) core####.core", it says gdb: command not found.
Maybe I have the wrong OS. In the guide all the prompt lines end with $ and in the shell, all the prompt lines end with #. Does that mean anything important? | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Wed 30 Aug 2006 03:54 AM (UTC) |
Message
| Try using uname to check what you're using. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Achan
(7 posts) Bio
|
Date
| Reply #4 on Wed 30 Aug 2006 03:55 AM (UTC) |
Message
| Linux.
(I love your quick responses, Zeno!) | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #5 on Wed 30 Aug 2006 04:09 AM (UTC) |
Message
| Maybe you don't have gdb, which would seem sort of odd. Try typing man gdb. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Achan
(7 posts) Bio
|
Date
| Reply #6 on Wed 30 Aug 2006 04:25 AM (UTC) |
Message
| man gdb
man: No such file or directory
Failed to open the message catalog man on the path NLSPATH=<none>
No manual entry for gdb | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #7 on Wed 30 Aug 2006 04:28 AM (UTC) |
Message
| Looks like you don't have gdb. I'd say do a whereis, but I think it's certain you don't have it. Talk to your host, you're missing something very helpful. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Achan
(7 posts) Bio
|
Date
| Reply #8 on Wed 30 Aug 2006 04:54 AM (UTC) |
Message
| whereis
whereis [ -sbmu ] [ -SBM dir ... -f ] name...
So I do have it.. only no clue how to use it. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #9 on Wed 30 Aug 2006 05:11 AM (UTC) |
Message
| whereis gdb |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Achan
(7 posts) Bio
|
Date
| Reply #10 on Wed 30 Aug 2006 05:43 AM (UTC) |
Message
| ]# whereis gdb
gdb:
That's what it gives me.. "gdb: "
{and nothing}. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #11 on Wed 30 Aug 2006 06:03 AM (UTC) |
Message
| Right, so gdb is not installed.
You'll have to talk to your host. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Achan
(7 posts) Bio
|
Date
| Reply #12 on Wed 30 Aug 2006 06:37 AM (UTC) |
Message
| Alright, thanks.
So no guesses without the GDB debugging on what's wrong? | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #13 on Wed 30 Aug 2006 06:59 AM (UTC) |
Message
| Without all the appropriate directories it is probably opening a file (or directory), getting a NULL pointer as a result (0), not checking it (that is, assuming the file/directory exists) and then using the null pointer.
Exactly which directory/file gdb would tell you, however I recommend setting up the standard files for swr, to minimize the likelihood of this happening. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #14 on Wed 30 Aug 2006 03:00 PM (UTC) |
Message
| How did you unzip your swr directory? Did you do it on your Windows box and then upload it? That might be your problem, since Winzip doesn't create empty directories, but almost all Linux tools do. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
31,438 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top