mv: cannot stat 'netmud': no such file or directory
I know where the netmud.pid file is, but as I'm a bit new to this, I'm not sure what to do to correct the error. Any help would be appreciated, thank you.
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Fritz on Sat 19 Oct 2024 09:31 PM — 26 posts, 34,446 views.
Which version are you compiling? I think the latest is available on GitHub:
https://github.com/pennmush/pennmush
What operating system are you using?
git clone https://github.com/pennmush/pennmush.git
cd pennmush
./configure
make update
make install
cd game
./netmush
[fritz@zeus game]$ ls -l
total 6176
-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
-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
nick@nick-desktop:~/Development/pennmush/game$ ls -l
total 164
-rw-rw-r-- 1 nick nick 6398 Oct 26 09:58 access.README
-rw-rw-r-- 1 nick nick 2899 Oct 26 10:00 alias.cnf
-rw-rw-r-- 1 nick nick 2899 Oct 26 10:00 aliascnf.dst
-rw-rw-r-- 1 nick nick 3010 Oct 26 09:58 CONNLOG.md
drwxrwxr-x 2 nick nick 4096 Oct 26 10:05 data
-rw-rw-r-- 1 nick nick 570 Oct 26 09:58 getdate.README
-rw-rw-r-- 1 nick nick 240 Oct 26 09:58 getdate.template
lrwxrwxrwx 1 nick nick 17 Oct 26 10:01 info_slave -> ../src/info_slave
drwxrwxr-x 2 nick nick 4096 Oct 26 10:05 log
-rw-rw-r-- 1 nick nick 34926 Oct 26 10:00 mush.cnf
-rw-rw-r-- 1 nick nick 34926 Oct 26 10:00 mushcnf.dst
-rw-rw-r-- 1 nick nick 402 Oct 26 10:00 names.cnf
-rw-rw-r-- 1 nick nick 402 Oct 26 09:58 namescnf.dst
lrwxrwxrwx 1 nick nick 13 Oct 26 10:01 netmush -> ../src/netmud
-rw-rw-r-- 1 nick nick 7270 Oct 26 09:58 README
-rwxrwxr-x 1 nick nick 5575 Oct 26 10:00 restart
-rwxrwxr-x 1 nick nick 5575 Oct 26 09:58 restart.dst
-rw-rw-r-- 1 nick nick 5520 Oct 26 10:00 restrict.cnf
-rw-rw-r-- 1 nick nick 5520 Oct 26 10:00 restrictcnf.dst
drwxrwxr-x 2 nick nick 4096 Oct 26 09:58 save
lrwxrwxrwx 1 nick nick 16 Oct 26 10:00 ssl_slave -> ../src/ssl_slave
drwxrwxr-x 4 nick nick 4096 Oct 26 10:00 txt
ln -s ../src/netmud netmush
./restart
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
./netmush mush.cnf
../src/netmud mush.cnf
-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
lrwxrwxrwx 1 fritz fritz 13 Nov 1 22:43 netmush -> ../src/netmud
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@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
[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
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.
# 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