Categories
problems

Amarok ebuild cannot find ruby

Recently I tried to install amarok on a fresh system and after build i couldn’t find amarok executable file!
>>> media-sound/amarok-1.4.10 merged.
>>> Recording media-sound/amarok in “world” favorites file…
After small sniffing I found in the middle of a build log following errors:

checking for ruby… /usr/bin/ruby
/usr/bin/ruby: no such file to load — auto_gem (LoadError)
/usr/bin/ruby: no such file to load — auto_gem (LoadError)
checking ruby.h usability… no
checking ruby.h presence… no
checking for ruby.h… no

checking if amarok should be compiled… no

=
= The Ruby programming language is not installed. Please obtain Ruby
= (version 1.8 or later) from http://ruby-lang.org, or install a distribution
= package. To build Amarok requires the Ruby header files as well, which some
= distributions package separately.

===  AMAROK WILL NOT BE BUILT
=
= Some mandatory dependencies are either not installed or not installed
= correctly. See the Amarok README for help with this issue. Further assistance
= can be found at http://amarok.kde.org or in amarok on irc.freenode.net.
= You will still be able to build other modules from extragear/multimedia.
=

Obviously I had ruby installed as it is amarok dependency.
I had no time to look into this, but quick sollution is to
emerge rubygems

Categories
problems

Unable to update-eix

Reading Portage settings ..
Building database (/var/cache/eix) ..
[0] “gentoo” /usr/portage/ (cache: metadata-flat)
Reading 50%terminate called after throwing an instance of ‘std::out_of_range’
what(): basic_string::compare

This is a bug in eix which has already been fixed in 0.13.5 version. So all you have to do is to update to that version (it’s still masked).

ACCEPT_KEYWORDS=”~x86″ emerge =eix-0.13.5 -av


In case you want to patch your version by yourself patch is avaible here.

Categories
gentoo

raise SAXReaderNotAvailable(“No parsers found”, None)

File “./iso3166tab.py”, line 45, in <module>
p = make_parser()
File “/usr/lib64/python2.5/xml/sax/__init__.py”, line 93, in make_parser
raise SAXReaderNotAvailable(“No parsers found”, None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
make[2]: *** [iso_3166.tab] Błąd 1
make[2]: Opuszczenie katalogu `/var/tmp/portage/app-text/iso-codes-3.2/work/iso-codes-3.2/iso_3166′
make[1]: *** [install-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/var/tmp/portage/app-text/iso-codes-3.2/work/iso-codes-3.2/iso_3166′
make: *** [install-recursive] Błąd 1
*
* ERROR: app-text/iso-codes-3.2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_install
* environment, line 2596: Called die
* The specific snippet of code:
* emake DESTDIR=”${D}” install || die “Installation failed”;
* The die message:
* Installation failed

Issue is described here and here

Sollution is to emerge pyxml by hand

Categories
gentoo

ImportError: No module named java_config_2

ImportError: No module named java_config_2
* Unable to determine VM for building from dependencies:
NV_DEPEND: tcl? ( >=dev-lang/tcl-8.4 )
java? ( >=virtual/jdk-1.4 )
>=sys-devel/binutils-2.16.1  test? ( >=dev-lang/tcl-8.4 ) java? ( >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 ) =sys-devel/automake-1.10*
>=sys-devel/autoconf-2.61
sys-devel/libtool

Try to run python-updater command and reemerge java-config

Categories
gentoo

Your machine must NOT be named localhost

If you receive error similar to this one (in this case during mysql installation):

* ERROR: dev-db/mysql-5.0.60-r1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called pkg_setup
*               ebuild.sh, line 1244:  Called mysql_pkg_setup
*            mysql.eclass, line  481:  Called die
* The specific snippet of code:
*      [[ “${HOSTNAME}” == “localhost” ]] && die “Your machine must NOT be named localhost”
*  The die message:
*   Your machine must NOT be named localhost

Make sure you have hostname variable set in /etc/conf.d/hostname file