Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > GTK+ and GLib for Gimp via Fink and X11

GTK+ and GLib for Gimp via Fink and X11
Thread Tools
Forum Regular
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 23, 2003, 07:09 PM
 
Hopefully this will answer future question for future confused *nix newbies like myself. This is the process I have taken so far.

I installed X11 and X11 SDK from the apple website. X11 SDK is needed in order to install system-xfree86 which I will explain later.

I then installed Fink. And then proceeded to update Fink cvs by using sudo fink updatecvs. I then attemped to install gimp by typing fink install gimp. Well this cause a problem. I needed system-xfree86 which from what I understand is some placeholder needed for Fink and is NOT the actual xfree86 which is done by your install of X11. You can install system-xfree86 by typing fink install system-xfree86. Again, make sure X11 SDK is installed or you can not install system-xfree86.

So now this leaves me at my current place. It would appear after I type gimp, gimp can not open because I do not seem to have GTK+ and GLib. Now I don't want to just install any GTK/GLib library because I want to maintain compatiblity with X11 and Fink, so can someone tell me where to get these libraries? Hopefully this thread will be able to anwer future peoples questions to these matters as I have done a search on title and body of messages for X11/Fink and GTK and GLib.

Thanks for any help.
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Jan 23, 2003, 08:05 PM
 
Fink should not have let you install gimp without gtk+, are you sure that you're interpreting the error message properly? For the hell of it, run dpkg --configure --pending to make sure everything's installed properly.
     
Forum Regular
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 23, 2003, 09:42 PM
 
You were right Tri. GTK+ did install with the Fink install. If anyone else has problems here is the next step I took. I realized I have been trying to open via the terminal.app, the terminal that came with the MacOSX. Well, one would figure why you needed to install X11,. Yep, you need to type gimp in the xterm window or whatever term window you use. Not the terminal.app window although I have read somewhere that you can edit a file to do this though...

So I got Gimp to work! Only thing is that it saids is

Gdk-WARNING **: Locale not supported by C library

Can someone decipher this or the ramifications of Gdk?

Thanks. I hope this helps future newbies.
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Jan 23, 2003, 10:29 PM
 
Your display environment variable wasn't set, you can launch x11 apps from Terminal if you want, "export DISPLAY=:0.0" works in bash, or you can use x11-open.

To fix the locale error messages put "export LANG=C" in your .bash_profile. GDK is the library gtk+ uses as a lightweight interface to xlib. It's just a warning, not an error




Adam
     
Forum Regular
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 23, 2003, 11:29 PM
 
Once again thank you Adam. This trick of export statements added to .bash_profile worked. However, at the time of execution, I already had X11 running and I typed gimp in the terminal.app window. This effectively opened gimp as well as remove the glib warning. I went on to see if I closed X11 and then type gimp in the terminal.app. This did not do as I expected. It could not open the display 0:0. Is there a way to do this or do I need to add a line in the .bashrc by way of using what I assume the following command.

alias gimp="open /applications/X11 | gimp"

This is just a stab since I am totally new to this *nix thing. Am I correct or is there a better way to accomplish this?

Thanks
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Jan 24, 2003, 02:40 PM
 
Try export DISPLAY=:0
You probably don't need the extra .0

You could also just alias gimp="open-x11 gimp"



Adam
     
Junior Member
Join Date: Feb 2002
Location: Bay Area, CA
Status: Offline
Reply With Quote
Feb 12, 2003, 10:39 PM
 
Where is .bash_profile located? I want to add the "export LANG=C" command to it. Thanks.
- Joel
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:39 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2