Wednesday, June 29, 2005

Upgrading to Fedora Core 4

I upgraded the PC to Fedora Core 4. Since I was wasting a lot of space in the windows partition, I resized it, but for some weird reason, Windows complained and I had again to reinstall it. So, After doing that, all the patches of windows, just to let the system up to date and that the scanning system of NUS doesn't complaint.

Now, as for Fedora Core, I downloaded the iso images, burnt the CDs and installed it. Once the installation is finished, I changed the grub.conf and I added the local repository with updates in NUS as a new .repo file in the /etc/yum.repos.d/ directory.

After updating all the packages, I compiled without any problem Coin3D and installed it. For the rest of applications I will install them when I need them. I made a backup of my whole account in the desktop, so I basically only had to move the directories I need it, and voila! Everything set.

I needed to install thunderbird and gkrellm using yum.
Then, when compiling mpk code, i got:
/usr/include/boost/graph/incremental_components.hpp:82: error: ‘find_representative_with_full_compression’ is not a member of ‘boost::detail’
/usr/include/boost/graph/incremental_components.hpp: In function ‘void boost::normalize_components(ParentIterator, ParentIterator)’:
/usr/include/boost/graph/incremental_components.hpp:102: error: ‘normalize_node’ is not a member of ‘boost::detail’

This is a problem with the Boost installation. To solve it, edit the file:
/usr/include/boost/graph/detail/incremental_components.hpp
and include there the following line:
#include < boost/pending/disjoint_sets.hpp >

Then, it compiled but I had a problem when running:
error while loading shared libraries: libCoin.so.40: cannot open shared object file
In Fedora Core 4, somethings changed, compared with previous versions. That is the case of yum. Instead of putting everything inside yum.conf, now there is a directory yum.conf.d and inside this one there are several files, one for each repository. The same applies for the shared libraries. In this case, there is a directory /etc/ld.so.conf.d/ and inside this, I created a file named coin.conf, with the following line:
/usr/local/lib which is the directory in which my libraries are. After that, mpk run perfectly.

To eliminate some warnings from Coin, I edited my .bash_profile file ending up like this one:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:.
IVMODELS=$HOME/mpk/ivmodels:$HOME/mpk/ivmodels2
COIN_FULL_INDIRECT_RENDERING=1
export COIN_FULL_INDIRECT_RENDERING
export PATH
export IVMODELS
unset USERNAME

I did not installed the development version of qt, which is required to compile the ivtools. So:
yum install qt-devel
then compile and install SoQt from Coin3D
and then compile and install ivtools


Also, the following libraries were missing: compat-gcc-32-c++.i386 and compat-libstdc++. Tetview requieres: compat-gcc-32-g77

Also, when the screensaver started running, I noticed that some flicking was happening. Then I remembered that I should install the drivers for the Nvidia card that comes with the computer. So, I went to NVidia web site, downloaded the driver and to install it:
a) Boot in failsafe mode. Kill the Xserver:
telinit 3
then sh NVIDIA******
The scripts says that it will require to compile the module for my kernel, I say yes, it does it and it finishes without problems.
Then, I go to /etc/X11xorg.conf and modify the Driver, deleting "nv" and replacing it with "nvidia"
delete Load "dri" and that's it. Restart X server and we are done.

0 Comments:

Post a Comment

<< Home