Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

emerge sys-kernel/gentoo-sources - python2.2 error

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Chance
n00b
n00b
Posts: 4
Joined: Tue Mar 11, 2003 5:27 pm

emerge sys-kernel/gentoo-sources - python2.2 error

  • Quote

Post by Chance » Tue Mar 11, 2003 5:31 pm

First off, let me preface by saying that I am a total Linux NOOB. But I have done searches and come up blank.

I am at the install stage where I am supposed to type: emerge sys-kernel/gentoo-sources.

But I get the following error message: python2.2: error while loading shared libraries: libstdc++.so.5: cannot open sh[line break on screen]
red object file: no such file or directory

Can anybody help?
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Tue Mar 11, 2003 8:29 pm

try to do:

Code: Select all

env-update
source /etc/profile
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Top
Chance
n00b
n00b
Posts: 4
Joined: Tue Mar 11, 2003 5:27 pm

  • Quote

Post by Chance » Tue Mar 11, 2003 9:16 pm

Thanks.

When I typed env-update I got the error message:
/usr/bin/python2.2: error while loading shared libraries: libstdc++.so.5: canno[line break on screen] open shared object file: no such file or directory

I did not type the second part of your suggestion yet.
Top
Chance
n00b
n00b
Posts: 4
Joined: Tue Mar 11, 2003 5:27 pm

  • Quote

Post by Chance » Tue Mar 11, 2003 9:57 pm

It is on a 3.2gb drive, with a 100gb boot partition ext2(hda1), 256mb swap partition(hda2), and the rest on reiserfs hda3. Is it possible this has something to do with the problem?

EDIT: Ok, here is where my problem starts. I began the process over again (not repartitioning or reformatting). All goes perfectly well, until I get to code listing 14.1, which is really where it begins with the python2.2 errors - not finding the files.

EDIT2: I've been navigating around, and have found that when I got to mnt/cdrom there is nothing there any more. Is that normal? If I hit the eject button on the drive, it doesn't eject the CD. Does that have anything to do with it?

Can anybody help?
Top
sebgarden
Guru
Guru
Posts: 353
Joined: Sat Dec 21, 2002 12:14 pm

  • Quote

Post by sebgarden » Wed Mar 12, 2003 1:23 am

Did you enabled cdrom support in the kernel ?

Sébastien
Top
ozukir@
Apprentice
Apprentice
User avatar
Posts: 209
Joined: Mon Oct 14, 2002 7:32 pm
Location: USA

  • Quote

Post by ozukir@ » Wed Mar 12, 2003 3:08 am

I'm getting the same error for a number of programs (i.e. python, groff, etc) on a system after upgrading to gcc-3.2.2. This is a real stopper as none of the Gentoo administration commands work.

I've tried the following:

Code: Select all

www 3.2.2 # pwd
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2
www 3.2.2 # ./libstdc++.so.5.0.2
Segmentation fault
Which doesn't seem to mean anything as I get the same results on a working system (gcc-3.2.2).

I rebuilt gcc-3.2.2 on another system, copied the binary from /usr/portage/packages and untarred it on the system. Still no luck.

So what's the best way to revert back to 3.2.1 without the python support needed for emerge??? I've got a couple of ideas, but I really don't want to hose this system.
Top
ozukir@
Apprentice
Apprentice
User avatar
Posts: 209
Joined: Mon Oct 14, 2002 7:32 pm
Location: USA

  • Quote

Post by ozukir@ » Wed Mar 12, 2003 7:06 am

I love finding the answers to my own questions. This thread solves the problem nicely. Now that I've reverted back to gcc-3.2.1 it's time to figure out what went wrong with 3.2.2 on this system.
Top
Chance
n00b
n00b
Posts: 4
Joined: Tue Mar 11, 2003 5:27 pm

  • Quote

Post by Chance » Wed Mar 12, 2003 2:55 pm

I must have understated the part where I said I was a total nOOb at Linux. Most of these things don't meen a whole lot to me. I am very experianced as an administrator on Microsoft and even Macintosh (to some extent) systems. I'm no stranger to the command line, going back to the DOS days. But this Linux stuff is so totally alien to me that I just don't really follow most of what you are saying.

I was going to try and copy the files from one directory to anouther, but I can't even find any copy command. I understand basically how the directory structures work, and how to change and list directories, but not a whole lot more than that.

There is no /usr/lib/gcc-lib/i386-pc-linux-gnu directory on what I have here to work with. Only /usr/lib/gcc-lib/i686-pc-linux-gnu. I have no 3.2.1 directory under that, only 3.2.2.

As far as enabling CDROM support... how does one do that? Do I need it at this point? The CD I am using the LiveCD that is about a 200mb ISO from the main download site. It is the latest version as far as I know.
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Wed Mar 12, 2003 6:20 pm

to copy files use the 'cp' command - for almost every command u can get a short help by doing 'command --help' and an extensive description by doing 'man command' (if the output doesnt fit on the screen hit ctrl-page up/down to navigate)

the reason why the directories have different names is on one part, that people are using different verions (u can have multiple verions of a program on your hd this way) - and on the other part that things get compiled for your architecture (i386 vs i686)

a good source of information regarding linux in genereal is the linux documentation project - with a lot of howtos and faqs...
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Top
ajaustin
n00b
n00b
User avatar
Posts: 38
Joined: Fri Oct 18, 2002 10:58 pm
Location: Surrey UK

  • Quote

Post by ajaustin » Sat Mar 15, 2003 11:15 am

I have just had exactly this problem myself on an install of Gentoo 1.4 rc3:-
Chance wrote:

I am at the install stage where I am supposed to type: emerge sys-kernel/gentoo-sources.

But I get the following error message: python2.2: error while loading shared libraries: libstdc++.so.5: cannot open sh[line break on screen]
red object file: no such file or directory
I had done a successfull install of rc3 a few days ago but it got stuck this time; I tried various workarounds with LD_LIBRARY_PATH to no avail, so decided to go back to untarring stage3.

I now am past the problem area and am compiling the kernel. There were three areas where I think I may have done something wrong the time before, so I made paid particular attention to the follwing points this time around.

1. I may have previously forgotten to do the "unset USE" in the last line of :
Code listing 10.1: Updating Using sync

# emerge sync
# export CONFIG_PROTECT="-*"
# export USE="-* bootstrap build"
# emerge portage
# unset USE

2. In my /etc/make.conf file I had:
CHOST="i586-pc-linux-gnu"
which I made sure was:
CHOST="i686-pc-linux-gnu"
as I using Pentium4.

3. Also in /etc/make.conf I had had:
USE=" ......... -python ......."
I made sure that this was:
USE=" ......... python ......."
I do not know which, if any of these, was the problem but I feel that it must have been one of them - anyway I am going forward with my install now.
Tony
Top
Post Reply

10 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy