LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 06-15-2009, 07:43 PM   #1
milomak
Member
 
Registered: May 2009
Posts: 90

Rep: Reputation: 17
ebuild errors


I've been using Gentoo for some time now. But I realise when I meet up with an ebuild error, the only thing I know to do is post it on a forum.

What should I look to, to be able to fix the problems myself?
 
Old 06-15-2009, 09:31 PM   #2
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
Hi, first, you check with google if someone has the error.

Also, you can go to http://bugs.gentoo.org/ and search for the name of the package that is crashing.

50% of the time, you can solve the problem with google and the bugzilla site and for the rest, you ask for help and that's pretty fine, because I'm sure that a lot of people can have the same problem as your.
 
Old 06-18-2009, 12:52 AM   #3
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Rep: Reputation: 18
Also you can check the irc. Anther possible choice is to install one version back.
 
Old 06-18-2009, 05:49 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
The first thing if you want to solve it yourself is to be able to read and understand the output.

When an ebuild fails there are at least two parts that you must be able to separate. Those are the compiler output and the portage one. It's very important to read the messages and identify where the error comes from. Once done that, then it just takes time and experience to be able to identify the ultimate cause of the problem. But sometimes it can get really tricky.

Last edited by i92guboj; 06-28-2009 at 10:19 AM. Reason: typo
 
Old 06-25-2009, 11:48 PM   #5
shuuhen
Member
 
Registered: Jun 2004
Distribution: Mac OS X 10.6.6, Gentoo Linux, FreeBSD 6.0
Posts: 127

Rep: Reputation: 20
The statements above about learning how to read the output and to search bugs.gentoo.org and Google will help you fix many problems. Also, the revdep-rebuild utility helps when a new revision of something requires rebuilding dependencies (part of the gentoolkit package). If you're stuck after that, you'll probably need to ask.

Here's an example. I was putting off updates because I was too busy to do much more than check my email and some of the updates were going from tetex to texlive and a new pcre version. The tetex to texlive upgrade requires rebuilding programs like kile and pcre is just a dependency that happened to have a newer version available.

Code:
libtool: link: cannot find the library `/usr/lib64/libpcreposix.la'
make[4]: *** [kile] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-editors/kile-2.0.3-r1/work/kile-2.0.3/src/kile'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-editors/kile-2.0.3-r1/work/kile-2.0.3/src/kile'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-editors/kile-2.0.3-r1/work/kile-2.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-editors/kile-2.0.3-r1/work/kile-2.0.3'
make: *** [all] Error 2
Most of that make stuff isn't relevant (for this purpose anyway). What we care about is the libtool line. A quick Google search for "cannot find the library" libpcreposix.la (the bold part, quotes included) would probably get you helpful results. However, the output from emerge (Portage messages, not build messages) after the pcre update says pcre no longer installs .la files and to install dev-util/lafilefixer and run it with the --justfixit argument.


In other cases Portage messages will say something useful like a USE flag should be enabled or disabled. The Portage output will have asterisks to the left of the messages. There can be other cases as well, but this is common stuff. I like to send the output from emerge -uvp to a file before an update so I have a reference of what was updated and what versions were involved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Deleting Program from Ebuild 321 Linux - Distributions 9 07-18-2006 11:38 PM
installing ebuild phsythax Linux - General 1 03-20-2006 04:44 PM
2.6.11.6 ebuild doralsoral Linux - Software 2 03-27-2005 09:33 PM
ebuild foo.ebuild digest problem shooterfpga Linux - Newbie 3 04-14-2004 06:57 AM


All times are GMT -5. The time now is 02:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration