Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>pkg-config & PKG_CONFIG_PATH

pkg-config & PKG_CONFIG_PATH

chefkww
05-11-2005, 09:38 PM
Since I am so new to Unix, and MAC I know some of my questions are basic but to me they are difficult. I have run into a problem installing the port py-gnome thru darwinports. Below is text from terminal showing error.

sudo port install py-gnome
Password:
---> Configuring gnome-applets
Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_gnome_gnome-applets/work/gnome-applets-2.10.0" && ./configure --prefix=/opt/local" returned error 1
Command output: checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin7.9.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for xrdb... /usr/X11R6/bin/xrdb
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... 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 more warnings... no
checking for pkg-config... /opt/local/bin/pkg-config
checking for gail >= 1.1.0... yes
checking GAILUTIL_CFLAGS... -DXTHREADS -I/opt/local/include/gail-1.0 -I/opt/local/include/atk-1.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include -I/opt/local/include/freetype2 -I/usr/X11R6/include -I/opt/local/include/libart-2.0
checking GAILUTIL_LIBS... -L/opt/local/lib -lgailutil
checking for gtk+-2.0 >= 2.5.0 libpanelapplet-2.0 >= 2.9.4... Package libpanelapplet-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libpanelapplet-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libpanelapplet-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.5.0 libpanelapplet-2.0 >= 2.9.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

Error: The following dependencies failed to build: nautilus eel librsvg metacity gnome-applets libexif py-gtk2


I have found similar problems and tried there solutions but they don't seem to work or I am doing them wrong.

Please help the new guy.

chefkww
05-11-2005, 10:06 PM
Was Able to fix the problem above, but new problem occured. Please Help.
Error text below:

sudo port install py-gnome
Password:
---> Configuring gnome-applets
---> Building gnome-applets with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_gnome_gnome-applets/work/gnome-applets-2.10.0" && make all" returned error 2
Command output: charpick.c:724: error: (near initialization for `charpick_applet_menu_verbs[1]')
charpick.c:725: error: initializer element is not constant
charpick.c:725: error: (near initialization for `charpick_applet_menu_verbs[2]')
charpick.c:728: error: `BONOBO_UI_VERB_END' undeclared here (not in a function)
charpick.c:728: error: initializer element is not constant
charpick.c:728: error: (near initialization for `charpick_applet_menu_verbs[3]')
charpick.c:728: warning: data definition has no type or storage class
charpick.c:752: error: parse error before '*' token
charpick.c: In function `charpicker_applet_fill':
charpick.c:754: error: `PanelAppletOrient' undeclared (first use in this function)
charpick.c:754: error: parse error before "orientation"
charpick.c:762: error: `applet' undeclared (first use in this function)
charpick.c:763: error: `PANEL_APPLET_EXPAND_MINOR' undeclared (first use in this function)
charpick.c:773: warning: assignment makes pointer from integer without a cast
charpick.c:794: error: `orientation' undeclared (first use in this function)
charpick.c:795: error: `PANEL_APPLET_ORIENT_LEFT' undeclared (first use in this function)
charpick.c:796: error: `PANEL_APPLET_ORIENT_RIGHT' undeclared (first use in this function)
charpick.c:840: error: `BonoboUIComponent' undeclared (first use in this function)
charpick.c:840: error: `popup_component' undeclared (first use in this function)
charpick.c: At top level:
charpick.c:857: error: parse error before '*' token
charpick.c: In function `charpicker_applet_factory':
charpick.c:863: error: `iid' undeclared (first use in this function)
charpick.c:864: error: `applet' undeclared (first use in this function)
charpick.c: At top level:
charpick.c:869: error: parse error before string constant
make[3]: *** [charpick.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: nautilus eel librsvg metacity gnome-applets libexif py-gtk2

anaxamander
05-12-2005, 03:03 PM
edit: see if this helps any: http://www.opendarwin.org/pipermail/cvs-darwinports-all/2005-May/033787.html

You could try to compile it with an older gcc - that error might go away. See if you have installed it first with "gcc_select --list" - you should have 3.3, 3.3-fast and 4.0 (which is the default). To switch compilers, issue: "sudo gcc_select 3.3" and enter your password. Then try to compile JUST that 1 gnome-applets package and see if it works: "sudo port install gnome-applets -v" if it does, then switch back to the normal gcc4 with "sudo gcc_select 4.0". Don't try to compile everything in sight with a mixture of the two compilers. Pick one, and stick with it. In this case (an applet for you to input accented and foreign characters), you might manage to squeek by unscathed.

If not, you might try to edit out building that specific applet - but that doesn't mean it won't fail somewhere else along the way (gnome-applets isn't even 1/3 done). Until the maintainer gets around to it, you could try editing the makefile for gnome-applets. See if deleting the two occurences of "charpick \" will do it (in the always_built_SUBDIRS and DIST_SUBDIRS section). Compile with "sudo port install gnome-applets -v -f -o".

Then email the maintainer with your error. Or post a bug on darwinport assigned to the maintainer.


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

How to set environment variables and path in 10.4?
problem installing Fink
Applescript: Hide Process
help with installing py-gnome (darwinports)
Mozilla install from dports fails
ssh - don't want to use password
Escaping quotes in Tiger

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics