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
➜ SMAUG
➜ Running the server
➜ Total newb
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Sat 05 Dec 2009 07:08 AM (UTC) |
Message
| Ok, I am wanting to get a DBS Code to run locally so I can learn how to build/code on it and I have no idea how. I was reading around some and installed cygwin but I don't know what else I will need to get it started. If there isn't any other software I need to install to get the MUD to run, great. I have no idea what I need to type in cygwin in order to get the MUD to start a server so I can log into it locally... Yea, I am a total newb when it comes to this. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 05 Dec 2009 09:49 AM (UTC) |
Message
| |
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Reply #2 on Sat 05 Dec 2009 06:16 PM (UTC) |
Message
| Well, that helps me some. I still have no idea what I am doing really. I follow the link and until I get to where the MAKE command is, I can't go any further. Cygwin doesn't seem to understand what the MAKE command is at all. Do I need zlib and what is it? | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #3 on Sat 05 Dec 2009 06:21 PM (UTC) |
Message
| You probably need to run the Cygwin installer/updater again and get Make installed. I'd imagine it's under Development tools, though I'm not sure.
Also, Cygwin is supposedly an -awful- platform to run a MUD off of. 'Andlinux' or running Linux in a virtual machine (look up VMWare) are oft-suggested alternatives... I'd suggest Andlinux, personally. I've never used it, but I have done a VM before, and it's IMO a bit of a hassle. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Reply #4 on Sat 05 Dec 2009 07:42 PM (UTC) |
Message
| Ok I got the make for cygwin working now but I am getting an error.
gcc -c -DMCCP -0 -g3 -Wall -DTIMEFORMAT -DIMC -DIMCSMAUG imc.c
make [1]: gcc: Command not found
make [1]: *** [imc.o] Erroc 127
make [1]: Leaving directort 'home/People/dbsc/scr'
make: *** [all] Error 2 | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #5 on Sat 05 Dec 2009 07:49 PM (UTC) |
Message
| You need to install GCC too. I don't know what package that's in for Cygwin, sorry. Probably somewhere under Programming. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Reply #6 on Sat 05 Dec 2009 08:18 PM (UTC) Amended on Sat 05 Dec 2009 08:21 PM (UTC) by Bizarro
|
Message
| Found the GCC files. Now its doing this.
mud.h:25:18: zlib.h: no such file or directory
Now do I have to instal zlib or what?
EDIT: Well, I ran the cygwin installer and found zlib in the devel tool directory so it is doing something now. | Top |
|
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Reply #7 on Sat 05 Dec 2009 09:10 PM (UTC) Amended on Sat 05 Dec 2009 09:11 PM (UTC) by Bizarro
|
Message
| Getting a different error now.
comm.c:1754: undefined reference to '_deflate'
comm.o in function 'compressStart':
comm.c:5796: undefined reference to '_deflateInit_'
com.o: in function 'compressEnd':
comm.c:5832: undefined reference to '_deflate'
comm.c:5838: undefined reference to '_deflateEnd'
collect2:ld returned exit status
make[1]: *** [dbs] error 1
make[1]: leaving directory '/home/people/dbsc/src'
make: *** [all] error 2
So yea, me being a newb I have no idea what any of that means.
EDIT: Thanks for your help BTW :D | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #8 on Sat 05 Dec 2009 09:33 PM (UTC) |
Message
| Sounds like it's not linking against zlib properly. The only time I've had to deal with these issues was when compiling MUSHclient from source, when I didn't have zlib in the right place. Maybe that's your problem, but I wouldn't know where the 'right' place is for you. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Reply #9 on Sat 05 Dec 2009 09:40 PM (UTC) |
Message
| Well, I don't know if zlib would be in the right place or not, I downloaded it via cygwin with the setup.exe so I would assume it would install to the correct spot. O well, maybe someone will have some insight soon :D | Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #10 on Sat 05 Dec 2009 10:16 PM (UTC) |
Message
|
Appears to be similar to your problem even though it's a different code base.
|
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #11 on Sun 06 Dec 2009 12:15 AM (UTC) Amended on Sun 06 Dec 2009 12:16 AM (UTC) by Nick Cash
|
Message
| Can you paste your Makefile? There may be a section you need to edit to get zlib to work correctly.
Also, when installing Cygwin it is generally best to just install -ALL- packages (unless space is an issue for you). That way you don't have to run the updated repeatedly to get all of it's goodies.
Twisol said:
Also, Cygwin is supposedly an -awful- platform to run a MUD off of. 'Andlinux' or running Linux in a virtual machine (look up VMWare) are oft-suggested alternatives... I'd suggest Andlinux, personally. I've never used it, but I have done a VM before, and it's IMO a bit of a hassle.
I'm not sure I'd call it awful. It may not be ideal, but it does its job quite well. MUDs don't really rely too much on hardware performance, so it is a convenient way to develop and run a MUD, and many people can host it just fine using Cygwin. Cygwin provides pretty good quality replication of a linux environment (though not as good as the real thing of course! :P). I personally make my MUD Cygwin and Linux compatible so that I can develop on my Windows box with Dev-C++, but host it permanently in Linux environment.
I've never used Andlinux, but I have used VirtualBox and it is quite easy to setup and play with. |
~Nick Cash
http://www.nick-cash.com | Top |
|
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Reply #12 on Sun 06 Dec 2009 02:42 AM (UTC) |
Message
| Here is a copy/paste of the makefile
CC = gcc
#PROF = -p
# Uncomment the line below if you have problems with math functions
MATH_LINK = -lm
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#Uncomment the line below if you are getting a line like:
#interp.c:757: warning: int format, time_t arg (arg 7)
TIME = -DTIMEFORMAT
#Uncomment the line below if you are getting implicit decleration of re_exec
#REG = -DREGEX
#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG = -lgnuregex
#IMC2 - Comment out to disable IMC2 support
IMC = 1
#DBUGFLG = -DREQUESTS
#Uncomment the line below if you want a performance increase though beware
#your core files may not be as much of a benefit if you do.
#OPT_FLAG = -finline-functions -funroll-loops -fdefer-pop -fstrength-reduce
#Uncomment if you wish to enable the Mud Client Compression Protocol
#Comment it out it if you are compiling with Cygwin
OPT_FLAG = -DMCCP
C_FLAGS = $(OPT_FLAG) -O -g3 -Wall $(PROF) $(DBUGFLG) $(SOLARIS_FLAG) $(TIME) $(REG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) ${MATH_LINK} -lz
#D_FLAGS : For the DNS Slave process. No need in linking all the extra libs for this.
D_FLAGS = -g3 -O $(PROF) $(SOLARIS_LINK)
O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o ban.o \
board.o boards.o bounty.o build.o clans.o colorize.o comm.o \
comments.o const.o db.o deity.o editor.o fight.o finger.o grub.o \
handler.o hashstr.o hiscores.o hotboot.o house.o ibuild.o ident.o \
imm_host.o interp.o magic.o makeobjs.o mapout.o marry.o \
misc.o mpxset.o mud_comm.o mud_prog.o new_fun.o pfiles.o planes.o \
planet.o player.o polymorph.o rare.o requests.o reset.o save.o \
services.o shops.o skills.o skills_android.o skills_dbs.o skills_genie.o \
space.o special.o stat_obj.o tables.o track.o update.o dns.o new_auth.o \
sha256.o
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c \
board.c boards.c bounty.c build.c clans.c colorize.c comm.c \
comments.c const.c db.c deity.c editor.c fight.c finger.c grub.c \
handler.c hashstr.c hiscores.c hotboot.c house.c ibuild.c ident.c \
imm_host.c interp.c magic.c makeobjs.c mapout.c marry.c \
misc.c mpxset.c mud_comm.c mud_prog.c new_fun.c pfiles.c planes.c \
planet.c player.c polymorph.c rare.c requests.c reset.c save.c \
services.c shops.c skills.c skills_android.c skills_dbs.c\
space.c special.c stat_obj.c tables.c track.c update.c dns.c skills_genie.c \
new_auth.c sha256.c
H_FILES = mud.h bet.h board.h finger.h hotboot.h house.h pfiles.h rare.h new_auth.h
ifdef IMC
C_FILES := imc.c $(C_FILES)
O_FILES := imc.o $(O_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif
all:
make dbs
dbs: $(O_FILES)
rm -f dbsaga
$(CC) $(L_FLAGS) -o dbsaga $(O_FILES)
chmod g+w dbsaga
chmod a+x dbsaga
chmod g+w $(O_FILES)
dns: resolver.o
rm -f resolver
$(CC) $(D_FLAGS) -o resolver resolver.o
chmod g+w resolver
chmod a+x resolver
chmod g+w resolver.o
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
clean:
rm -f *.o dbsaga *~
| Top |
|
Posted by
| Hanaisse
Canada (114 posts) Bio
|
Date
| Reply #13 on Sun 06 Dec 2009 03:07 AM (UTC) |
Message
|
Quote: #Uncomment if you wish to enable the Mud Client Compression Protocol
#Comment it out it if you are compiling with Cygwin
OPT_FLAG = -DMCCP
As I said, it's an MCCP - Cygwin problem. Comment out that line:
#OPT_FLAG = -DMCCP |
aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000 | Top |
|
Posted by
| Bizarro
(10 posts) Bio
|
Date
| Reply #14 on Sun 06 Dec 2009 04:34 AM (UTC) |
Message
| Awesome, it works. One thing, I can't get the Admin character to log on, the password is not working. Any help you can offer me on this? :D :D | 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.
59,505 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top