Sunday 12 January 2014

Some notes on installing apps in gentoo x86_64

This post lists all the problems I have encountered during updating gentoo using #--------------update the system weekly----------------------------
# emerge -auDvN  --keep-going world 
#---------------problem in installing evince----------------------------
# emerge -av evince 
configure: error: "PDF support is disabled since poppler-glib library version 0.20.0 or newer not found" solve:
# emerge -av poppler 
#---------------problem in installing net-libs/gupnp-igd-0.2.1----------------------------
* ERROR: net-libs/gupnp-igd-0.2.1::gentoo failed (compile phase):
 *   emake failed
test.c: In function 'main':
test.c:66:3: warning: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
test.c:67:3: warning: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
  CCLD     test
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: test.o: undefined reference to symbol 'g_type_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_type_init' is defined in DSO /usr/lib64/libgobject-2.0.so.0 so try adding it to the linker command line
/usr/lib64/libgobject-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [test] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1'
make: *** [all] Error 2
emake failed
 * ERROR: net-libs/gupnp-igd-0.2.1::gentoo failed (compile phase):
 *   emake failed

Solve:

add the follow line in /etc/portage/package.keywords/net-libs

>=net-libs/gupnp-igd-0.2.2-r1

solved #-------------- install systemd on gentoo and use Grub 2 to boot it -------- there are two important information that one needs to follow: [1]: How to set new manuentry? [2]: How to add a new vmlinuz in folder /boot/ Here are successful example of menuentries in /boot/grub/grub.cfg
one can write these to /boot/grub/grub.cfg


menuentry 'Gentoo write by myself' {
        root=hd0,2
        linux /boot/vmlinuz-3.10.7-gentoo root=/dev/sda2 init=/usr/lib/systemd/systemd
}

menuentry 'Gentoo write by myself UUID' --class gnu-linux --class gnu {
        root=hd0,2
        linux /boot/vmlinuz-3.10.7-gentoo root=UUID=671f9d17-5de7-4fe7-a6bf-f1096f4efe29 init=/usr/lib/systemd/systemd
}

 ------- The problem on the networkmanager after updated to systemd and gnome 3 ----------------- 
The networkmanager in gentoo installed at my laptop and desktop failed to work after updating to systemd and gnome3. To find out the problem, I use:
systemctl status NetworkManager
 
which says:
The overwriting error message was: Could not load plugin 'ifnet': /usr/lib64/NetworkManager/libnm-settings-plugin-ifnet.so: cannot open shared object file: No such file or directory 
To resolve this problem, one needs to delete ifnet in the file /etc/NetworkManager/NetworkManager.conf
[main]
#plugins=ifnet,keyfile
plugins=keyfile
no-auto-default=00:26:6C:09:9F:1C,

[ifnet]
managed=true
auto_refresh=false
There is one thing to be reminded: alternatively, one can use wicd as a temporary resolution. However, I found the wicd is quite unstable in my gentoo system than that in Ubuntu. #------ Important note on updating kernels ----------------- I had one bad experience in updating kernel of my PC. after new kernel is selectecd, the module that has been selected has been gone completely! This means that I have to look for every module selected in the kernel! To avoid this problem happen again, One should backup file /usr/src/linux/.config before any updates on kernels!
Problem:
[ebuild   R    ] app-text/docbook-sgml-utils-0.6.14-r1  USE="jadetex" 0 kB
emake error
emerge =docbook-sgml-dtd-3.1* 
emerge -u docbook-sgml-utils

Problem:
media-sound/cdparanoia-3.10.2-r6
solution:
echo "=media-sound/cdparanoia-3.10.2-r6 -static-libs" >> /etc/portage/package.use/media-sound


Problem:
sci-libs/scotch-6.0.0:0/6 fail to install 
Solution: to enable all the flags.
echo ">=sci-libs/scotch-6.0.0:0/6 mpi doc int64 static-libs threads tools" >> /etc/portage/package.use/sci-libs


Problem:
app-i18n/fcitx-4.2.7  USE="X autostart cairo dbus enchant gtk gtk3 icu introspection nls pango qt4 static-libs table xml -debug -lua -opencc -snooper {-test}" 0 kB
Solution: enabling all the falgs
echo ">=app-i18n/fcitx-4.2.7 lua opencc snooper" >> /etc/portage/package.use/app-il8n



Problem: Displaying Chinese properly without Desktop manager:
1. # emerge -av arphicfonts wqy-bitmapfont  corefonts ttf-bitstream-vera
2. # gedit /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8

3. locale-gen && env-update && source /etc/profile