Installation of Gerbv on suse linux 9.1

 

Step 1: Downloaded gerbv-1.0.2.tar.gz from gerbv.sourceforge.net

Step 2: Extracted gerbv-1.0.2.tar.gz . Changed to newly expanded directory. ( cd gerbv-1.0.2 )

Step 3: Typed ./configure

I got the error message as "No acceptable C compiler found in $Path".

So, I installed gcc 3.3.3 from yast.

Then, I got the error message as "GTK+-2.0 not installed"

Step 4: searched for gtk+-2.0.0.tar.bz2 file and downloaded it.

Step 5: Extracted gtk+-2.0.0.tar.bz2 & changed to newly expanded gtk2.0.0 directory.

Step 6: Typed ./configure

I got error message about pkgconfig. So, I installed pkgconfig 0.15.0 from yast.

Typed ./configure

Then I got the error message as "Pango backend found but did not find freetype libraries"

Then I tried to install freetype libraries but still gtk has failed to find freetype libraries.

So I decided to find out the lines of code in configure file which searches for freetype library

and prints that error message.

I identified the code in configure file where it prints that error message. See below.

if $have_freetype ; then
:
else
{ { echo "$as_me:13820: error: pangoxft Pango backend found but did not find freetype libraries" >&5
echo "$as_me: error: pangoxft Pango backend found but did not find freetype libraries" >&2;}
{ (exit 1); exit 1; }; }
fi

So I commented this lines of code as follow

# debug
# if $have_freetype ; then
# :
# else
# { { echo "$as_me:13820: error: pangoxft Pango backend found but did not find freetype libraries" >&5
# echo "$as_me: error: pangoxft Pango backend found but did not find freetype libraries" >&2;}
# { (exit 1); exit 1; }; }
# fi

Again tried for ./configure

Then I got the error message as "pangoxft Pango backend found, but Xft not found"

Again I located the code in configure file where it prints this error message.

if $have_xft ; then
x_libs="$X_LIBS -lXft -lXrender -lXext -lX11 $FREETYPE_LIBS $X_EXTRA_LIBS"
else
{ { echo "$as_me:15273: error: pangoxft Pango backend found, but Xft not found" >&5
echo "$as_me: error: pangoxft Pango backend found, but Xft not found" >&2;}
{ (exit 1); exit 1; }; }
fi

 

 

I set have_xft to true as follow

 

 

# debug
have_xft=true
# debug
if $have_xft ; then
x_libs="$X_LIBS -lXft -lXrender -lXext -lX11 $FREETYPE_LIBS $X_EXTRA_LIBS"
else
{ { echo "$as_me:15273: error: pangoxft Pango backend found, but Xft not found" >&5
echo "$as_me: error: pangoxft Pango backend found, but Xft not found" >&2;}
{ (exit 1); exit 1; }; }
fi

 

Type ./configure

After this changes , gtk 2.0.0 gets installed successfully.

 

Step 8 : Go back to gerbv-1.0.2 directory.

Step 9: type ./configure

Step 10: type make

Step 11: type make install

Step 12: Tested by typing gerbv