Toon posts:

[GNOME] Acme compilen geeft errors

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hai,

Ik zou heel graag het programmaatje Acme willen gebruiken onder SuSE 8.2. Het is een programma voor het gebruik van sneltoetsen op je toetsenbord (iTouch voor Windows zeg maar).

Ik heb dus netjes de readme doorgelezen en toen ging ik aan de slag:

./configure

Hier ging het al mis:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for intltool >= 0.20... 0.25 found
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking what warning flags to pass to the C compiler... -Wall -Wmissing-prototypes
checking what language compliance flags to pass to the C compiler...
checking for pkg-config... /usr/local/bin/pkg-config
checking for libgnomeui-2.0 libglade-2.0 libwnck-1.0 >= 2.1.5... Package libgnomeui-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnomeui-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnomeui-2.0' found
 
configure: error: Library requirements (libgnomeui-2.0 libglade-2.0 libwnck-1.0
>= 2.1.5) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

Wat mij dus eerst opviel, was pkg-config. Deze heb ik nu netjes geinstalleerd en hij geeft aan dat deze geinstalleerd is. Wat mij ook opviel, was dat automake en aclocal ontbreken. Ik heb dit nagekeken in YaST2, en deze geeft aan dat deze wel geinstalleerd zijn. Versie 1.7 zelfs. Daaronder vinden we nog een error over de PKG_CONFIG_PATH. Ik heb dus gezocht in YaST2 naar libgnomeui, maar die heeft versie 2.2.0.1-79.

Zijn automake-1.7, aclocal-1.7 en libgnomeui-2.2 dan niet backwards compatible met de gevraagde versies?

Verwijderd

Waarom compileer je acme ? Het staat namelijk als rpm package op de cd :) of desnoods vanaf een ftp site :
ftp://ftp.nl.uu.net/pub/l...86/acme-2.0.2-66.i586.rpm

Verwijderd

Topicstarter
Dit klinkt misschien heeeeeel n000bish, maar ik krijg RPM's niet geinstalleerd, dus ik heb alles tot nu toe maar met source gedaan :D

Verwijderd

aha

Nou dan moet je voor het compileren ff doen :

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig

dan opnieuw configure + compileren...

Je hebt namelijk het configure script van pkg-config laten draaien zonder --prefix optie.... het pakket zal dan standaard /usr/local als prefix krijgen. Als nu /usr/local/bin/pkg-config zal draaien, dan zal pkg-config gaan zoeken naar metafiles (*.pc) in /usr/local/lib/pkgconfig.

Standaard zal Suse haar metafiles installeren onder /usr/lib/pkgconfig...
Als je de environment variabele PKG_CONFIG_PATH zet met de juiste paden, zal pkg-config ook zoeken naar metafiles in deze paden... Misschien is het handig om deze te variabele te definieren in de .profile of .bash_profile van de user waaronder je normaal gesproken de boel configured en compiled, dan hoef je er niet steeds aan te denken...

Als je een pakket compileerd, is deze uiteraard niet geinstalleerd met rpm. De rpm database zal dus ook niet ge-update worden. Als je veel compileert, is de tool "checkinstall" erg handig. Deze run je ipv "make install", checkinstall geeft je vervolgens de mogelijkheid om een rpm package te maken welke ook direct geinstalleerd zal worden. Daarmee dus ook een update in de rpm database. Dit is handig, want dan kun je een rpm pakket ook makkelijk verwijderen.

BTW :

rpm -i package.rpm <--- installeerd een pakket
rpm -e package.rpm <--- uninstall een pakket
rpm -U package.rpm <--- update een pakket
rpm -qa <--- laat alle geinstalleerde paketten zien

En misschien ook de rpm manual lezen ? :)

[ Voor 32% gewijzigd door Verwijderd op 27-08-2003 03:14 ]