Register forum user name Search FAQ

Gammon Forum

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.
 Entire forum ➜ PennMUSH ➜ Compiling the server ➜ netmud

netmud

You need to log onto the forum to reply or create new threads.

  Refresh page


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #15 on Fri 01 Nov 2024 11:20 PM (UTC)
Message
In your "src" directory you should have various .c and .o files, including "netmud" which is the final result of compilation, like this:


nick@nick-desktop:~/Development/pennmush/game$ ls -l ../src
total 48232
-rw-rw-r-- 1 nick nick   22360 Oct 26 09:58 access.c
-rw-rw-r-- 1 nick nick   70952 Oct 26 10:00 access.o
-rw-rw-r-- 1 nick nick   31609 Oct 26 09:58 atr_tab.c
-rw-rw-r-- 1 nick nick  110112 Oct 26 10:00 atr_tab.o
-rw-rw-r-- 1 nick nick   81699 Oct 26 09:58 attrib.c
-rw-rw-r-- 1 nick nick  228256 Oct 26 10:00 attrib.o
-rw-rw-r-- 1 nick nick    5418 Oct 26 09:58 bflags.c
-rw-rw-r-- 1 nick nick     925 Oct 26 09:58 bflags.gperf
-rw-rw-r-- 1 nick nick   63074 Oct 26 09:58 boolexp.c
-rw-rw-r-- 1 nick nick  137784 Oct 26 10:00 boolexp.o
-rw-rw-r-- 1 nick nick  217766 Oct 26 09:58 bsd.c
-rw-rw-r-- 1 nick nick  697848 Oct 26 10:00 bsd.o
-rw-rw-r-- 1 nick nick    6837 Oct 26 09:58 bufferq.c
-rw-rw-r-- 1 nick nick   21464 Oct 26 10:00 bufferq.o
-rw-rw-r-- 1 nick nick   48469 Oct 26 09:58 charconv.c
-rw-rw-r-- 1 nick nick   73368 Oct 26 10:00 charconv.o
-rw-rw-r-- 1 nick nick   88955 Oct 26 09:58 chunk.c
-rw-rw-r-- 1 nick nick  218840 Oct 26 10:00 chunk.o
...
-rwxrwxr-x 1 nick nick 9447000 Oct 26 10:01 netmud
-rwxrwxr-x 1 nick nick 9447000 Oct 26 10:00 netmud~
...
-rw-rw-r-- 1 nick nick   12486 Oct 26 09:58 warnings.c
-rw-rw-r-- 1 nick nick   60440 Oct 26 10:00 warnings.o
-rw-rw-r-- 1 nick nick   15917 Oct 26 09:58 websock.c
-rw-rw-r-- 1 nick nick   60032 Oct 26 10:00 websock.o
-rw-rw-r-- 1 nick nick   20916 Oct 26 09:58 wild.c
-rw-rw-r-- 1 nick nick   41864 Oct 26 10:00 wild.o
-rw-rw-r-- 1 nick nick   76976 Oct 26 09:58 wiz.c
-rw-rw-r-- 1 nick nick  348216 Oct 26 10:00 wiz.o


Now, if you have "netmud" there then when you are in your "game" directory this simple command should run the MUSH:


./netmush mush.cnf


Or, if the "ln" I suggested did not work for some reason, simply do this:


../src/netmud mush.cnf

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fritz   (12 posts)  Bio
Date Reply #16 on Sat 02 Nov 2024 02:38 PM (UTC)

Amended on Sat 02 Nov 2024 08:23 PM (UTC) by Nick Gammon

Message

-rw-r--r-- 1 fritz fritz    6398 Aug 31  2019 access.README
-rw-rw-r-- 1 fritz fritz    2806 Oct 30 19:05 alias.cnf
-rw-rw-r-- 1 fritz fritz    2899 Oct 30 19:05 alias.cnf.bak
-rw-r--r-- 1 fritz fritz    2899 Oct 30 19:05 aliascnf.dst
-rw------- 1 fritz fritz 5885952 Mar 31  2024 core.tmp.8907
drwxr-xr-x 2 fritz fritz    4096 Sep  8 01:09 data
-rw-r--r-- 1 fritz fritz     570 Aug 31  2019 getdate.README
-rw-r--r-- 1 fritz fritz     240 Aug 31  2019 getdate.template
drwxr-xr-x 2 fritz fritz    4096 Sep  8 01:09 log
-rw-rw-r-- 1 fritz fritz   33360 Oct 30 19:05 mush.cnf
-rw-rw-r-- 1 fritz fritz   33360 Oct 30 19:05 mush.cnf.bak
-rw-r--r-- 1 fritz fritz   33000 Oct 30 19:05 mushcnf.dst
-rw------- 1 fritz fritz    2559 Sep  8 01:16 mush.cnf.save
-rw-r--r-- 1 fritz fritz   33329 Sep  8 01:16 mush.cnf.save.1
-rw------- 1 fritz fritz       0 Sep  8 05:00 mush.cnf.save.2
-rw-r--r-- 1 fritz fritz   33316 Sep  8 05:00 mush.cnf.save.3
-rw-r--r-- 1 fritz fritz     402 Aug 31  2019 names.cnf
-rw-r--r-- 1 fritz fritz     402 Aug 31  2019 namescnf.dst
lrwxrwxrwx 1 fritz fritz      13 Nov  1 22:43 netmush -> ../src/netmud
-rw-r--r-- 1 fritz fritz       5 Mar 22  2024 netmush.pid
-rw-r--r-- 1 fritz fritz    7270 Aug 31  2019 README
-rwxr-xr-x 1 fritz fritz    5300 Aug 31  2019 restart
-rwxr-xr-x 1 fritz fritz    5300 Aug 31  2019 restart.dst
-rw-rw-r-- 1 fritz fritz    4183 Oct 30 19:05 restrict.cnf
-rw-rw-r-- 1 fritz fritz    4972 Oct 30 19:05 restrict.cnf.bak
-rw-r--r-- 1 fritz fritz    5520 Oct 30 19:05 restrictcnf.dst
drwxr-xr-x 2 fritz fritz    4096 Sep  8 01:09 save
-rwxr-xr-x 1 fritz fritz  140928 Aug 31  2019 ssl_slave
drwxr-xr-x 4 fritz fritz    4096 Aug  7  2022 txt


important to note netmush in this line is red text and the
../src/netmud is highlighted in red:


lrwxrwxrwx 1 fritz fritz      13 Nov  1 22:43 netmush -> ../src/netmud


the only netmud i can find in src is netmud~ , no .c or .o file
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #17 on Sat 02 Nov 2024 08:30 PM (UTC)
Message

If the link is in red then the file netmud does not exist, because the compilation failed. There won’t be a netmud.c - the netmud file is the result of linking all of the .o files together.

Your original error report:

mv: cannot stat ‘netmud’: no such file or directory

… would seem to be the effect of the compilation failing, not the cause. You probably had other error messages which result in not getting the netmud file produced.

Is there any reason you don’t just download and compile the latest version as I did in an earlier reply? Then you can copy the netmud file to your existing src directory and everything should work (assuming you have an existing database you want to keep using).


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fritz   (12 posts)  Bio
Date Reply #18 on Sat 02 Nov 2024 08:33 PM (UTC)
Message
I just wasn't sure that I could do that and didn't want to risk it. I asked people more experienced than me and always got an unsure reply.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #19 on Sat 02 Nov 2024 08:44 PM (UTC)
Message
Make a backup of your database (which you should be doing anyway). The worst that could happen is that it doesn't work, and you have to go back to the backup.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #20 on Sat 02 Nov 2024 08:48 PM (UTC)
Message
The database should be in the "data" directory, you should see files like this:


nick@nick-desktop:~/Development/pennmush/game/data$ ls -lh
total 8.6M
-rw-rw-r-- 1 nick nick   88 Nov  3 01:13 chatdb.gz
-rw------- 1 nick nick 2.0M Nov  2 10:19 chunkswap
-rw-r--r-- 1 nick nick 6.6M Oct 26 10:02 help.db
-rw-rw-r-- 1 nick nick 3.1K Oct 26 10:05 indb.gz
-rw-rw-r-- 1 nick nick   65 Nov  3 01:13 maildb.gz
-rw-rw-r-- 1 nick nick 3.1K Nov  3 01:13 outdb.gz
-rw-rw-r-- 1 nick nick  26K Nov  2 10:12 PANIC.db
-rw-rw-r-- 1 nick nick   38 Oct 26 09:58 README


If you have an existing MUSH the file indb.gz and outdb.gz should be much larger. I would back up that entire directory.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fritz   (12 posts)  Bio
Date Reply #21 on Sun 03 Nov 2024 03:52 AM (UTC)

Amended on Sun 03 Nov 2024 05:17 AM (UTC) by Nick Gammon

Message
I got netmud and copied the file over, mush starts, but none of the previous database is loading.

This is what the data folder looks like:


[fritz@zeus data]$ ls -lh
total 4.9M
-rw-rw-r-- 1 fritz fritz  478 Mar 31  2024 chatdb.gz
-rw------- 1 fritz fritz 2.0M Nov  3 03:47 chunkswap
-rw-r--r-- 1 fritz fritz 2.6M Nov  3 03:48 help.db
-rw-r--r-- 1 fritz fritz 163K Mar 22  2024 indb.gz
-rw-rw-r-- 1 fritz fritz   65 Mar 31  2024 maildb.gz
srwxrwxr-x 1 fritz fritz    0 Nov  3 03:47 netmush.sock
-rw-rw-r-- 1 fritz fritz 162K Mar 31  2024 outdb.gz
-rw-r--r-- 1 fritz fritz   38 Aug 31  2019 README
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #22 on Mon 04 Nov 2024 05:48 AM (UTC)

Amended on Mon 04 Nov 2024 05:49 AM (UTC) by Nick Gammon

Message

I’m confused about your directory setup. I’m guessing, but don’t know because you don’t give a whole lot of detail, that you have:

  • Your existing MUSH in some directory

  • The one you were compiling which didn’t fully compile in another directory.

  • The one you downloaded as I suggested in a third directory.

I am guessing that you are running the MUSH (netmud) from a directory that is not finding the database.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fritz   (12 posts)  Bio
Date Reply #23 on Mon 04 Nov 2024 06:58 PM (UTC)

Amended on Mon 04 Nov 2024 06:59 PM (UTC) by Fritz

Message
Actually there's only one directory uploaded to the server my friend is letting me use, which is the directory of the existing mush, which is what I was trying to compile to work on that server before. I had been using a hosting service before but was forced to move because they're shutting down, and I've never had to move from one server to a new one before.

I downloaded the new instance of Pennmush to my pc and uploaded netmud into the server directory from there so there'd be no cross contamination, so to speak.

I did notice something strange after I restarted the Mush to try to get it to recognize the database: outdb vanishes from the data folder after a restart.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #24 on Mon 04 Nov 2024 08:27 PM (UTC)
Message
Check out the contents of mush.cnf file. Part of it has the paths to the database, perhaps that does not agree with your setup:


# Databases
# These are, respectively, where to read a database, where to
# write a database, where to put a panic dump (performed if
# the MUSH determines it's going to crash, where to put MUSH mail,
# and where to keep information about the chat system.
# Filenames are relative to the game/ directory.
#
# Do NOT put compression suffixes at the end of the files.
# That's handled below
#
input_database data/indb
output_database data/outdb
crash_database data/PANIC.db
mail_database data/maildb
chat_database data/chatdb


Also, post any messages that appear when the MUSH starts up, perhaps it is not finding your database and is saying so.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fritz   (12 posts)  Bio
Date Reply #25 on Fri 08 Nov 2024 11:27 AM (UTC)
Message
I'll have to ask Opie what the correct path is because I tried to edit it to what I thought was correct previously to this, and I just got a message saying it didn't recognize those paths.

I'm not on my pc right now, but when I have an opportunity I'll post what it says when I start the MUSH.
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.


1,734 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

You need to log onto the forum to reply or create new threads.

  Refresh page

Go to topic:           Search the forum


[Go to top] top

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