Please check out Jesus Died for us All !

Member Discussions

terms



[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]


1. Need help urgently! Sat Feb 24, 2007 [4:28 AM]
Artemis813
x0xstrickenx0x@hotmail.com
member since: Oct 21, 2004
Reply
ok, I just used the DBI codebase. It told me on compile that it couldnt find the zlib.h file even though I ftped it in. It was added in mud.h as <zlib.h> and I changed it to "zlib.h". It compiled, warnings and stuff of course. But at the very end it says:

/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [dbi] Error 1
make[1]: Leaving directory `/home/ryou/dbi/src'
make: *** [all] Error 2

but in Makefile it is there on this line:

L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) ${MATH_LINK} -lz

Any ideas what I can do to fix that? Because I cant access anything in usr/bin, telling me it is write protected and I cant change anything in it and save it


2. RE: Need help urgently! Sat Feb 24, 2007 [7:11 AM]
kingarthyr
Email not supplied
member since: Feb 4, 2006
In Reply To
Reply
You probably need to change the permissions on the file you ftp'd in.


3. RE: Need help urgently! Sat Feb 24, 2007 [10:29 AM]
Tyche
Email not supplied
member since: Apr 4, 2000
In Reply To
Reply
You don't have the zlib installed on the server, so the linker can't find it. That you had to copy the header locally is a good indication. Assuming you don't own the server, or can't get the owner to install zlib, the only alternative is to get the zlib source and build and install it locally under your user directory. The to use it in your mud you need to point the include search path to -I/home/user/zlibinstdir and the linker serach path to -L/home/user/zlibinstdir

(Comment added by Tyche on Sat Feb 24 12:32:25 2007)

Also read the TOS of this site. It says under no circumstances are you to cross post to more than two forums.

(Comment added by Tyche on Sat Feb 24 12:34:35 2007)

Whoops nevermind. I just realized DBI was something related to DragonBallZ. Ignore my post.
The Sourcery - http://sourcery.dyndns.org
TeensyMud - http://teensymud.kicks-ass.org
"A man can receive nothing, except it be given him from heaven."


4. RE: Need help urgently! Sat Feb 24, 2007 [11:37 AM]
Artemis813
x0xstrickenx0x@hotmail.com
member since: Oct 21, 2004
In Reply To
Reply
Well, the server admin said that zlib is installed on the server. So everyone has been telling me to install it directly. I FTPd zlib.h and zconf.h into my src directory, and I typed install zlib.h and it just keeps telling me to type install --help. So if someone could just please tell me what exactly I have to type to install it to wherever I need to to get it working, Id really appreciate that.


5. RE: Need help urgently! Sat Feb 24, 2007 [1:47 PM]
Zeno_McDoh
Email not supplied
member since: Jul 30, 2004
In Reply To
Reply
People are telling you to upload zlib.h etc to your local dir..?
-Zeno McDohl,
Owner of Bleached InuYasha Galaxy: http://www.biyg.org
Free MUD host: http://zeno.biyg.org
Learn how to build in Smaug at: http://zeno.biyg.org/~sbi/


6. RE: Need help urgently! Sat Feb 24, 2007 [10:36 PM]
Tyche
Email not supplied
member since: Apr 4, 2000
In Reply To
Reply
Well, the server admin said that zlib is installed on the server.

If "#include <zlib.h>" in your source and "-lz" in your link in your makefile do not pick up the header and the library respectively then it is either not installed or it is installed but in a place not in the search path of the compiler or linker. Ask your server admin.
The Sourcery - http://sourcery.dyndns.org
TeensyMud - http://teensymud.kicks-ass.org
"A man can receive nothing, except it be given him from heaven."




[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]