Fedora Linux Support Community & Resources Center
  #1  
Old 5th December 2011, 12:17 PM
gb127 Offline
Registered User
 
Join Date: Dec 2011
Posts: 3
windows_xp_2003chrome
Makefile error (libz.so.1: cannot open shared object file)

Hi,

Does anyone know how do solve the following error during makefile processing?What does it means?

Makefile output
/sbin/mkfs.jffs2: error while loading shared libraries: libz.so.1:cannot open shared object file : No such file or directory
make[1] :***[install] Error 127
make[1] : Leaving directory
make:*** [system] Error 2

-----------------------------------------------------
The error occurred after this command
rm -f $(LIB_MOD)/modules.*
/sbin/depmod -b $(RAMDISK_DIR) -F ../$(LINUX)/System.map -A $(KERNELRELEASE)
@$(STRIP) ramdisk/lib/iptables/*
@$(STRIP) ramdisk/lib/pppd/*
@$(STRIP) ramdisk/usr/sbin/*
@$(STRIP) ramdisk/sbin/iptables

This makefile is used for arm gcc compiling in host development(fedora15 64bits).Any help will be appreciate.Thanks.
Reply With Quote
  #2  
Old 5th December 2011, 12:24 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 822
linuxfirefox
Re: Makefile error (libz.so.1: cannot open shared object file)

I think that you are being told that the shared object file libz.so.1 is missing on the build system. Try
Code:
su -c 'yum install zlib-devel'
and see if that fixes it.
Reply With Quote
  #3  
Old 5th December 2011, 12:59 PM
gb127 Offline
Registered User
 
Join Date: Dec 2011
Posts: 3
windows_xp_2003chrome
Re: Makefile error (libz.so.1: cannot open shared object file)

Thanks for reply. After I tried the command , the same error is still occur. Also, how do I check whether the package is installed as I'm just a new Linux platform user?
Reply With Quote
  #4  
Old 5th December 2011, 01:31 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 822
linuxfirefox
Re: Makefile error (libz.so.1: cannot open shared object file)

To check if a package is installed, use "rpm -q", so here I would try
Code:
rpm -q zlib zlib-devel
One thing to watch for if you are using the 64-bit version is the end of the package name: ".i686" signifies the 32-bit libraries, and ".x86_64" is for the 64-bit ones.

To look for a file quickly:
Code:
locate libz.so.1
Reply With Quote
  #5  
Old 5th December 2011, 02:18 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: Makefile error (libz.so.1: cannot open shared object file)

Also, it may have been damaged somewhere (protection, security label...)

Sometimes such problems can be cleared up with a reinstall. You might try "yum reinstall zlib-devel"
Reply With Quote
  #6  
Old 6th December 2011, 01:54 AM
gb127 Offline
Registered User
 
Join Date: Dec 2011
Posts: 3
windows_xp_2003chrome
Re: Makefile error (libz.so.1: cannot open shared object file)

Hi jpollard,
It still not working after re-installation "zlib-devel".

Hi marriedto51,
I have tried both of commands "rpm -q zlib zlib-devel" and "locate libz.so.1".It shows
1) zlib - 1.2.5-5.fc15.x86_64
zlib-devel - 1.2.5-5.fc15.x86_64
2) /lib64/libz.so.1

It seems I have already installed the package,right?
Have any other solution?Thanks for helping.
Reply With Quote
  #7  
Old 6th December 2011, 09:06 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 822
linuxfirefox
Re: Makefile error (libz.so.1: cannot open shared object file)

Yes, that looks like the packages are installed.

I think to get any further will need more information on what you are trying to build.

Just one further thought: do you need the 32-bit library? Try
Code:
su -c 'yum install zlib.i686'
Reply With Quote
Reply

Tags
error, file, libzso1, makefile, object, open, shared

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: error while loading shared libraries: libssl.so.4: cannot open shared object Darker Using Fedora 3 1st April 2009 05:54 PM
cannot open shared object file anitha2324 Using Fedora 1 2nd October 2007 03:29 AM
error while loading shared libraries: libXp.so.6: cannot open shared object file kootharaas Using Fedora 2 22nd June 2007 02:53 PM
error while loading shared libraries: libXp.so.6: cannot open shared object file kootharaas Using Fedora 2 21st June 2007 06:00 PM
error while loading shared libraries: libssl.so.5: cannot open shared object file frold Servers & Networking 2 31st December 2005 09:06 AM


Current GMT-time: 15:36 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat