LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2007, 11:32 PM   #1
Valfather
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
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?

Last edited by Valfather; 04-10-2007 at 04:59 PM.
 
Old 04-10-2007, 01:39 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
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.
 
Old 04-10-2007, 07:27 AM   #3
bandwidthjunkie
LQ Newbie
 
Registered: Jan 2007
Location: london
Distribution: Gentoo(amd64) - 2.16.20
Posts: 26

Rep: Reputation: 15
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.

Last edited by bandwidthjunkie; 04-10-2007 at 07:28 AM.
 
Old 04-10-2007, 04:58 PM   #4
Valfather
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 09:15 AM
Gnome do I need to reinstall? Gentoo Tbagz Linux - Newbie 15 02-24-2006 02:58 AM
Corrupted sound + video, Should i reinstall? l00zer Linux - General 3 02-03-2005 11:22 PM
Gentoo - Resizing the Partitions without reinstall backflippin Linux - Software 2 04-07-2004 12:04 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration