Previous: Website Moved To Wordpress
Next: Customizing Firefox for Web Development

Install Notes: Anjuta 2.2.1 on Ubuntu AMD64

September 27th, 2007

Anjuta is a nice programming IDE (Integrated Development Environment) for Gnome. I use it for C and GTK+ programming. Today I installed version 2.2.1 on my Ubuntu Feisty Fawn distro running AMD64. This isn't an extensive installation guide, but instead just a couple of notes on possible hang ups.

The downloads page lists various dependencies which are pretty easy to satisfy for the most part. When running the configure script, you simply look for any errors or notices about missing packages and use apt-get or aptitude to find them. However, there was one "gotcha" that I ran in to.

Once I had my dependencies satisfied and configure ran through, I got this error during make:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libiberty.a(cplus-dem.o): relocation R_X86_64_32S against `_sch_istable' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libiberty.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

This liberty.a file is part of binutils which I had installed using aptitude. This is needed if you're going to be using the valgrind plugin. Apparantly, the binutils-dev package for Feisty AMD64 is not built with the -fPIC flag. To resolve this issue I removed the binutils-dev package using aptitude and re-built it from source as follows:

sudo aptitude remove binutils-dev
wget http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.gz
tar -xzf binutils*
cd binutils*
CFLAGS="-fPIC" ./configure
make
sudo make install


Categories
Linux GTK+ C Programming

Related Posts


Technorati Tags

2 Responses to “Install Notes: Anjuta 2.2.1 on Ubuntu AMD64”

RSS Subscription Comments RSS Feed

  1. interval Says:

    I don't know what gnucash is but this great step-by-step helped me:

    http://groups.google.ch/group/gnucash/web/building-anjuta-from-sources-on-ubuntu

  2. kunal Says:

    i when installing anjuta . it is showing cannt find find package anjutha . i have installed kubuntu amd bit . i dont know why . it is showing same when i am using gcc compiler it cant able to find build essential package .
    what show i do . could u mail me the answer

Leave a Reply