image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old April 5th, 2007, 10:52 PM
Registered User
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
owning is on a distinguished road
problem settin path

hello,
I am tryin to install one of the packages known as stage for my robotics stuff, but everytime i run the
./configure am getting the error as

configure: error: pkg-config is required to build Stage. Install pkg-config, then run configure again.

I have installed the pkg-config, and it resides in /usr/local/bin directory.

But somehow its not getting recognized here. I know i need to set this path somewhere but where no idea can someone help me with this
/etc/profile and bashrc are read-only am not able to make changes to them .

Thanks
Reply With Quote
  #2  
Old April 6th, 2007, 11:14 AM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 251
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Add the following to ~/.bashrc (creating the file if it doesn't exist):

Code:
export PATH=/usr/local/bin:$PATH
Open a new terminal window and you should be all set.
Reply With Quote
  #3  
Old April 6th, 2007, 11:21 AM
Registered User
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
owning is on a distinguished road
HI,
You are the Saviour as always.
Thanks for the tip and it works.

But sorry for wrting in the same thread, am running into a problem again.
Its like when i do a

Trinity:~ hetawal$ cd stage-2.0.3/
Trinity:~/stage-2.0.3 hetawal$ sudo ./configure
checking for pkg-config... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... configure: error: A suitable GTK+ was not found.
GTK+-2.4 or later is required.

So i really dont know how to proceed further from this point. I tried
downoading the gtk2.10 but its installation is also giving me errors
as:
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package
requirements (glib-2.0 >= 2.12.0 atk >= 1.9.0 pango >= 1.13.0
cairo >= 1.2.0) were not met:

No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.


So i dont know should i really go ahead and install these missing
packages, or this error is somehting due to path settings .


Please advice


Thanks a lot !
Reply With Quote
  #4  
Old April 6th, 2007, 11:39 AM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 251
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Rather than building all the required libraries etc. by hand, consider using Fink or MacPorts (formerly Darwin Ports) to get the required libraries etc. They're already either in binary form ready to install, or in code already configured to compile cleanly on OS X. I've installed gtk+, atk, pango etc. using Fink.
Reply With Quote
  #5  
Old April 6th, 2007, 01:26 PM
Registered User
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
owning is on a distinguished road
I have fink on my system but dont know how to use it. Can you provide me wtih an example so as to how to get these installed.
However i noticed in one the readme for the installation that it says :
use below command ,

sudo apt-get install gtk2 atk1 libjpeg-bin

and when i do so it gives an error as :

Trinity:~/stage-2.0.3 hetawal$ sudo apt-get install gtk2 atk1 libjpeg-bin
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://fink.sodan.ecc.u-tokyo.ac.jp ecc/crypto Packages (/sw/var/lib/apt/lists/fink.sodan.ecc.u-tokyo.ac.jp_apt_10.4_dists_ecc_crypto_binary-darwin-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://fink.sodan.ecc.u-tokyo.ac.jp ecc/crypto Packages (/sw/var/lib/apt/lists/fink.sodan.ecc.u-tokyo.ac.jp_apt_10.4_dists_ecc_crypto_binary-darwin-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package gtk2


Now what to do ...

?
Reply With Quote
  #6  
Old April 7th, 2007, 02:59 AM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 251
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Did you try the suggestion from the warnings shown above?

Code:
W: You may want to run apt-get update to correct these problems
Reply With Quote
  #7  
Old April 7th, 2007, 12:35 PM
Registered User
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
owning is on a distinguished road
yes i tried the update and even removing and again installing the fink but no success.

Trinity:~ hetawal$ sudo apt-get update
Password:
Hit http://bindist.finkmirrors.net 10.4/release/main Packages
Hit http://bindist.finkmirrors.net 10.4/release/main Release
Hit http://bindist.finkmirrors.net 10.4/release/crypto Packages
Hit http://bindist.finkmirrors.net 10.4/release/crypto Release
Hit http://bindist.finkmirrors.net 10.4/current/main Packages
Hit http://bindist.finkmirrors.net 10.4/current/main Release
Hit http://bindist.finkmirrors.net 10.4/current/crypto Packages
Hit http://bindist.finkmirrors.net 10.4/current/crypto Release
Reading Package Lists... Done
Building Dependency Tree... Done
Trinity:~ hetawal$ sudo apt-get install gtk2 atk1 libjpeg-bin
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package gtk2
Reply With Quote
  #8  
Old April 8th, 2007, 06:43 PM
Registered User
 
Join Date: Mar 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
owning is on a distinguished road
Yes i tried doing that
sudo apt-get update
Password:
Hit http://bindist.finkmirrors.net 10.4/release/main Packages
Hit http://bindist.finkmirrors.net 10.4/release/main Release
Hit http://bindist.finkmirrors.net 10.4/release/crypto Packages
Hit http://bindist.finkmirrors.net 10.4/release/crypto Release
Hit http://bindist.finkmirrors.net 10.4/current/main Packages
Hit http://bindist.finkmirrors.net 10.4/current/main Release
Hit http://bindist.finkmirrors.net 10.4/current/crypto Packages
Hit http://bindist.finkmirrors.net 10.4/current/crypto Release
Reading Package Lists... Done
Building Dependency Tree... Done

And now when i run :

checking for pkg-config... /sw/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... configure: error: A suitable GTK+ was not found. GTK+-2.4 or later is required.

Giving me the same error what should i do ...
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 04:20 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.