LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ncurses corrupted on Gentoo, need reinstall (http://www.linuxquestions.org/questions/linux-software-2/ncurses-corrupted-on-gentoo-need-reinstall-544704/)

Valfather 04-09-2007 11:32 PM

Ncurses corrupted on Gentoo, need reinstall - <SOLVED>
 
Somehow in upgrading stuff on my computer (InitNG, i believe) libncurses became corrupted. I need to reinstall curses, without real access to my box (it won't boot linux anymore). Is there a place with precomplied binaries?

deadeyes 04-10-2007 01:39 AM

Quote:

Originally Posted by Valfather
Somehow in upgrading stuff on my computer (InitNG, i believe) libncurses became corrupted. I need to reinstall curses, without real access to my box (it won't boot linux anymore). Is there a place with precomplied binaries?

Boot with a bootable cd.
Mount the partition where gentoo is on.
Then chroot to the gentoo install.
Then emerge --unmerge ncurses (or curses)
After emerge -av ncurses to see what USE flags there are.
I don't know how you have to recompile the package.

There will probably be no binary packages. Gentoo compiles from source.

bandwidthjunkie 04-10-2007 07:27 AM

Get a live cd (the gentoo minimal install cd is good) then having got you system up and running:
Code:

# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# env-update
>> Regenerating /etc/ld.so.cache...
# source /etc/profile
# export PS1="(chroot) $PS1"

(If you dont use the minimal CD you will need to create these directories)
This chroots you into your gentoo system, and then try
Code:

# emerge -D ncurses
You will already have all the source code on your computer, so with any luck this will rebuild ncurses and all of its dependencies.

Valfather 04-10-2007 04:58 PM

See, the problem is that my ncurses installation is fscked, so I cannot chroot. It complains about libncurses.so not existing. Which is why i wanted the binary package. Not as an install, but as a hack so I could get paludis to rebuild ncurses.

I got it working. Booting with a livecd, i just copied all the libncurses*so files to lib, and then chrooted and reinstalled properly.


All times are GMT -5. The time now is 05:34 AM.