Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to install XFree86 (Xinstall.sh), getting error

Status
Not open for further replies.

gwu

MIS
Dec 18, 2002
239
0
0
US
I am getting some errors while running the Xinstall.sh
install script. Any hints?

thanks

*********************
....
Running ldconfig

Updating the fonts.dir file in
/usr/X11R6/lib/X11/fonts/local.../usr/X11R6/bin/mkfontscale:
error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or
directory

Updating the fonts.dir file in
/usr/X11R6/lib/X11/fonts/misc.../usr/X11R6/bin/mkfontscale:
error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or
directory
*********************
after the install, when running any newly installed X
program I get the same error:
*********************
>startx
X: error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or
directory
*********************
 
Looks like you need to install the zlib package.....You can get it from sunfreeware.

___________________________________
[morse]--... ...--[/morse], Eric.
 
I already installed zlib-1.2.1 downloaded from But after configure/make/make install, i do not see that particular file in /usr/local/lib:libz.so.1 . It only creates: libz.a.


Thanks
 
whoops, my answer was for solaris....That is happening to me a lot lately.

Anyway,

Any way you could possibly back that installation out? I would try to find the RPM for it instead of building it from source. RPM's are (for the most part) foolproof.

___________________________________
[morse]--... ...--[/morse], Eric.
 
I'd recompile zlib, but use ./configure --prefix=/usr (it defaults to /usr/local) or go into /usr/lib and do a 'ln -s /usr/local/lib/libz*so*'. Also check /etc/ld.so.conf for the /usr/local/lib path and, if it isn't there, add it then run 'ldconfig' to update the dynamic library loader's cache.

----
JBR
 
Xfree comes with it's own version of zlib. you need to delete that and rerun ldconfig. that will fix your problem.
 
xfree's version of zlib is in the utils package. you don't need it as it contains stuff already installed on your system.
make sure your hosts.def file has

/* These settings ensure we use our libraries ******************************/
#define HasFreetype2 YES
#define HasExpat YES
#define HasLibpng YES
#define HasZlib YES

assuming you're building from source. I only do this from source, so if you're using the binaries i'm not sure, but it does sound like the zlib conflict
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top