View previous topic :: View next topic |
Author |
Message |
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sat May 21, 2016 7:33 pm Post subject: [SOLVED]Libpng can not find zlib. |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat May 21, 2016 9:10 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21586
|
Posted: Sat May 21, 2016 10:38 pm Post subject: |
|
|
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 |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sun May 22, 2016 2:23 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21586
|
Posted: Sun May 22, 2016 3:57 pm Post subject: |
|
|
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 |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sun May 22, 2016 8:20 pm Post subject: |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun May 22, 2016 8:44 pm Post subject: |
|
|
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 |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sun May 22, 2016 9:12 pm Post subject: |
|
|
So, what should I do to fix this and finish my installation? |
|
Back to top |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sun May 22, 2016 9:31 pm Post subject: |
|
|
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 |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sun May 22, 2016 10:12 pm Post subject: |
|
|
And again, I already put on make.conf, but the error persists. Code: | configure: error: zlib not installed |
There is on and on What is the problem? |
|
Back to top |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun May 22, 2016 11:33 pm Post subject: |
|
|
caaarlos ...
don't rely on us guessing, post the build.log, 'emerge --info', etc
best ... khay |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun May 22, 2016 11:50 pm Post subject: |
|
|
caaarlos ... you seem to have an x32 CHOST ... why?
best ... khay |
|
Back to top |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sun May 22, 2016 11:55 pm Post subject: |
|
|
I do not know why... my CHOST is the problem? |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon May 23, 2016 12:38 am Post subject: |
|
|
caaarlos wrote: | I do not know why... my CHOST is the problem? |
caaarlos ... well, what stage3 did you use?
best ... khay |
|
Back to top |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Mon May 23, 2016 1:20 pm Post subject: |
|
|
Thanks khayyam, I will nver realize that I downloaded stage3 x32. |
|
Back to top |
|
|
|