[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  complete noob with swr2.0 compilation problem
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

complete noob with swr2.0 compilation problem

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Achan   (7 posts)  [Biography] 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.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Achan   (7 posts)  [Biography] 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?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Achan   (7 posts)  [Biography] bio
Date Reply #4 on Wed 30 Aug 2006 03:55 AM (UTC)
Message
Linux.

(I love your quick responses, Zeno!)
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Achan   (7 posts)  [Biography] 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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Achan   (7 posts)  [Biography] 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.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Achan   (7 posts)  [Biography] 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}.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Achan   (7 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] 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.


6,666 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]