It seems I’m not the only one who has a problem with Gutsy Gibbon. A search on the internet shows several hits and possible fixes. Let’s see it it works.
- You have to comment out the “CDROM” line in your “/etc/apt/sources.list” by typing the following at the Terminal:
- gksudo gedit /etc/apt/sources.list
- Once you have your /etc/apt/sources.list file open look for the following line:
- deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
- Comment the line out so that it looks like the following line:
- #deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
- Save the “/etc/apt/sources.list” file and close it.
- Update your “/etc/apt/sources.list” by typing the following at the Terminal:
- sudo apt-get update
All these commands work fine, the CDROM line is the first line in the file on my system. Using the Synaptic Package Manager the build-essential package is located and marked for installation. This triggered the request for the Gutsy Gibbon error and indeed, the installation now works fine. All other packages are marked again for installation and no problems occur during installation of these packages as well.
Now let’s check if a program can be made using Anjuta, a new Generic C project is started with all settings to default. After confirming all settings several scripts are running and NO, again error messages that disappear to fast to see what else is missing. It seemes to be something with int…tool, this might have to do with the option to add internationalization to the project. In the Package Manager there is a package intltool, this is installed and might solve the problem.
Now something funny happened. Previously I always started a new Generic C project and when it failed to generete the required files I closed Anjuta and deleted the folder that was created (foobar-sample). The next time Anjuta was started to test again it complained the project was missing, no problem since I deleted it myself. By mistake I pressed the New button which added a blank file in the IDE after which I created the new project and found the errors again. I closed Anjuta, deleted the folder foobar-sample again and I started Anjuta again. Now no error is displayed, the Newfile#1 is opened again and (even better) when creating a new project with Newfile#1 still open the messages remain visible! YES! More good news, installing the intltool package solved the int…tool error, but there is still an error reported: glib must be installed.
Glib is not a package that is available in the Package Manager, searching what glib is results in the GTK project that provides a Graphical Tool Kit. Since I will not be developing graphical programs I will not install it. After deleting the project again, start Anjuta, create a new Generic C project and set the options Add shared library support and Add internationalization both to NO the project is now created without any errors. Build the project using the Build | Build Project menu option will copile and link it. Finally the program can be executed using the Build | Execute Project menu, the result “Hello world” is displayed in the Terminal box at the bottom.
Finally….