Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Libpng can not find zlib.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sat May 21, 2016 7:33 pm    Post subject: [SOLVED]Libpng can not find zlib. Reply with quote

I am traying to install gentoo and on my first emerge --ask --update --deep --newuse @world I got an error saying that zlib is not installed, but it is. This errors happens on libpng package.

Wha do I have do I have to do?


Last edited by caaarlos on Mon May 23, 2016 1:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat May 21, 2016 9:10 pm    Post subject: Reply with quote

caaarlos ...

If I were to take a wild guess then I would suspect that you are building multilib and media-libs/libpng is expecting to build ABI_X86="(64) 32", but sys-libs/zlib is built with ABI_X86="(64) -32".

best ... khay
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Sat May 21, 2016 10:38 pm    Post subject: Reply with quote

If khayyam's guess is not correct, or if you are not sure how to apply the advice he gave you, then you need to show us exactly what failed. The error message should have asked you to provide the config.log of the failed run (and given you its location) and the output of emerge --info.
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sun May 22, 2016 2:23 pm    Post subject: Reply with quote

khayyam is right. But I put ABI_X86="(64) 32" on make.conf and I got another error while updating my system. on ncurses installation I got this
Code:
[sys-libs/ncurses-5.9-r5] bash: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory


So I tryed to emerge ncurses, but I got:

Code:
# emerge -av  sys-libs/ncurses
sh: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Failed to validate a sane '/dev'.
bash process substitution doesn't work; this may be an indication of a broken '/dev/fd'.


Every time that I try to emerge something this error happens.
What do I have to do?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Sun May 22, 2016 3:57 pm    Post subject: Reply with quote

caaarlos wrote:
I put ABI_X86="(64) 32" on make.conf
This is wrong. You should not parenthesize the flags. khayyam placed them in parentheses because that is how Portage would display it to you.

Somehow you have installed an ncurses which has no libncurses.so.5 suitable for bash. Either you have no libncurses.so.5 at all or you built only the 32-bit version. I would like to see the output of emerge --pretend --verbose sys-libs/ncurses, but I suspect that you cannot collect it until the problem is resolved. You need libncurses.so.5 before you can run new instances of bash. You need to run new instances of bash to build anything with emerge. You might be able to reinstall it from a binary package without a working bash. I have never tried that. It might still be routed through the shell. I suggest that you not log out or reboot until you fix this, as you will not be able to start new login shells until this is fixed.
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sun May 22, 2016 8:20 pm    Post subject: Reply with quote

I started a new gentoo installation, but still getting errors with zlib.

Code:
 Messages for package sys-libs/zlib-1.2.8-r1:

 * The ebuild phase 'postrm' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.
 * The 'postrm' phase of the 'sys-libs/zlib-1.2.8-r1' package has failed
 * with exit value 1.
 *
 * The problem occurred while executing the ebuild file named
 * 'zlib-1.2.8-r1.ebuild' located in the '/var/db/pkg/sys-
 * libs/zlib-1.2.8-r1' directory. If necessary, manually remove the
 * environment.bz2 file and/or the ebuild file located in that directory.
 *
 * Removal of the environment.bz2 file is preferred since it may allow the
 * removal phases to execute successfully. The ebuild will be sourced and
 * the eclasses from the current portage tree will be used when necessary.
 * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
 * removal phases to be skipped entirely.


Do I have hardware problems? I have windows on another hard drive and it works without errors and livecd (xubuntu and system rescue cd) both works correctly.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun May 22, 2016 8:44 pm    Post subject: Reply with quote

caaarlos wrote:
Code:
 * The ebuild phase 'postrm' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313).

... or by gentoo developers changing some eclass and making the old environment.bz2 cause the above error.

caaarlos wrote:
Do I have hardware problems? I have windows on another hard drive and it works without errors and livecd (xubuntu and system rescue cd) both works correctly.

caaarlos ... you can most likely safely ignore the above error.

best ... khay
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sun May 22, 2016 9:12 pm    Post subject: Reply with quote

So, what should I do to fix this and finish my installation?
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sun May 22, 2016 9:31 pm    Post subject: Reply with quote

After ncurses installation I always get this error.

Code:

sh: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Failed to validate a sane '/dev'.
bash process substitution doesn't work; this may be an indication of a broken '/dev/fd'.



I build ncurses using 64 and 32 ABI, should I try to use x32? On lib64 exists a file called libncurses.so.5. Why this happens?
I am getting bored with this. Please, someone help me. I do not know what to do.
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sun May 22, 2016 10:12 pm    Post subject: Reply with quote

And again, I already put
Code:
ABI_X86="64 32"
on make.conf, but the error persists.
Code:
configure: error: zlib not installed


There is
Code:
libz.so
on
Code:
/usr/lib64
and on
Code:
/usr/lib32
What is the problem?
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sun May 22, 2016 11:32 pm    Post subject: Reply with quote

Now I am installing libpng and zlib without 32 bits support, but libpng still not finding zlib.

Code:
emerge --info
https://bpaste.net/show/78331529330d

Code:
config.log
https://bpaste.net/show/518700df307b

Code:
emerge --info '=media-libs/libpng-1.6.19::gentoo'
https://bpaste.net/show/5e14dd59a0e0

Code:
emerge -pvq '=media-libs/libpng-1.6.19::gentoo'
https://bpaste.net/show/1eb195618ae3

Code:
build.log
https://bpaste.net/show/3f67856b16c5

Code:
environment
https://bpaste.net/show/379fad87697f

Code:
make.conf
https://bpaste.net/show/750934538595

Last edited by caaarlos on Sun May 22, 2016 11:54 pm; edited 2 times in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun May 22, 2016 11:33 pm    Post subject: Reply with quote

caaarlos ...

don't rely on us guessing, post the build.log, 'emerge --info', etc

best ... khay
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun May 22, 2016 11:50 pm    Post subject: Reply with quote

caaarlos wrote:
emerge info: https://bpaste.net/show/78331529330d.

caaarlos ... you seem to have an x32 CHOST ... why?

best ... khay
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Sun May 22, 2016 11:55 pm    Post subject: Reply with quote

I do not know why... my CHOST is the problem?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon May 23, 2016 12:38 am    Post subject: Reply with quote

caaarlos wrote:
I do not know why... my CHOST is the problem?

caaarlos ... well, what stage3 did you use?

best ... khay
Back to top
View user's profile Send private message
caaarlos
Apprentice
Apprentice


Joined: 27 Apr 2012
Posts: 155

PostPosted: Mon May 23, 2016 1:20 pm    Post subject: Reply with quote

Thanks khayyam, I will nver realize that I downloaded stage3 x32.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum