image
image

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

Reply
 
Thread Tools
  #1  
Old December 21st, 2005, 02:07 PM
Registered User
 
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
michaeljh2000 is on a distinguished road
help compiling

I have Fink installed and I'm trying to use it to install various programs. When I try to compile them, I recieve a message that states I must compile with gcc 4.0.0 and that I have got 4.0.1 selected. In order to correct this, a message then states to run command "sudo gcc_select 4.0", which I do, then I get another message that says I'm already using 4.0 as the default compiler. How do I get the compiler to run with gcc 4.0.0?

Running Tiger 10.4.3 and I have installed the developer tools.
Reply With Quote
  #2  
Old December 21st, 2005, 02:43 PM
billbaloney's Avatar
House pianist
 
Join Date: Oct 2000
Location: Brooklyn, NY
Posts: 509
Thanks: 0
Thanked 0 Times in 0 Posts
billbaloney is on a distinguished road
Try "gcc --version" and see what you're actually running. Then try "gcc_select -l" and see what your options are. If you have 4.0 available, you can try forcing the issue with "gcc -force 4.0".

I have a clean install of 10.4.3, and my gcc version in use is this:

powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer, Inc. build 5026)

It's possible that Fink is using a gcc that it installed itself. See if there's a binary at

/sw/bin/gcc

If so, you may want to uninstall that via Fink (preferred), or just move the binary. You could

sudo mv /sw/bin/gcc /sw/bin/gcc.disable

and see if that forces Fink to look for the system gcc.
__________________
Matt (billbaloney)
1.67GHz "October 2005" G4 Aluminum 1.5 GB RAM, OS 10.5.2
Lots of other things around
Helen Marie
Holford Industries
Reply With Quote
  #3  
Old December 21st, 2005, 10:51 PM
Registered User
 
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
michaeljh2000 is on a distinguished road
I’m running version 4.0.1. My options include 4.0, but gcc –force 4.0 did not work. I did not see a binary at /sw/bin/gcc.

I tried many different things, including removing the following:

powerpc-apple-darwin8-gcc-4.0.1
powerpc-apple-darwin8-g++-4.0.1
i686-apple-darwin8-gcc-4.0.1
i686-apple-darwin8-g++-4.0.1

Then when I tried to compile I got a message that I had selected an unknown compiler. I installed the SDK again, which installed the items I had removed.

It still is trying to use version 4.0.1 of the compiler.
Reply With Quote
  #4  
Old December 22nd, 2005, 01:14 AM
billbaloney's Avatar
House pianist
 
Join Date: Oct 2000
Location: Brooklyn, NY
Posts: 509
Thanks: 0
Thanked 0 Times in 0 Posts
billbaloney is on a distinguished road
run

"locate gcc | grep bin"

What do you see?
__________________
Matt (billbaloney)
1.67GHz "October 2005" G4 Aluminum 1.5 GB RAM, OS 10.5.2
Lots of other things around
Helen Marie
Holford Industries
Reply With Quote
  #5  
Old December 22nd, 2005, 03:18 AM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
If you've installed Xcode 2.2, you'll need to remove that and install Xcode 2.1, as the latest version of Xcode has some problems with fink.
Reply With Quote
  #6  
Old December 27th, 2005, 01:59 PM
Registered User
 
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
michaeljh2000 is on a distinguished road
I deleted 2.2 and reinstalled 2.1. That didn't do it, so I then deleted the sw and sub directories, reinstalled Fink 0.8.0 with a few errors, but I can now successfully compile.
My new problem seems to be running X11. I installed it with SDK and looked for it under applications/utilities, but I cannot find X11.app.
My goal is to run unix apps installed with Fink. From what I understand, the unix apps need to be executed under X11.

BTW: Thanks for the help you guys have given me.
Reply With Quote
  #7  
Old December 27th, 2005, 02:22 PM
Registered User
 
Join Date: Mar 2005
Posts: 208
Thanks: 0
Thanked 2 Times in 2 Posts
artov is on a distinguished road
Quote:
Originally Posted by michaeljh2000
My goal is to run unix apps installed with Fink. From what I understand, the unix apps need to be executed under X11.
No, you need X11 only to run X11 -programs. Other (console) programs work just fine on Terminal.app (I use ITerm.app, but that is another story).
Reply With Quote
  #8  
Old December 28th, 2005, 06:48 AM
Registered User
 
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
michaeljh2000 is on a distinguished road
Ok, but I still cannot find X11.app. If I try install the X11User.pkg, I get a message that states that I "cannot install X11 on this volume. Newer software already exists on your computer." Alright, so where is it? When I use the find function it does not appear anywhere.

Also, when I try to execute ethereal with terminal.app, I get a gtk warning cannot open display. What am I doing wrong?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling c++ nr7 Software Programming & Web Scripting 17 January 7th, 2003 11:37 AM
C++ ? Compiling Da_iMac_Daddy Software Programming & Web Scripting 10 October 14th, 2002 06:52 PM
Compiling C++ mjia Software Programming & Web Scripting 1 February 18th, 2002 09:34 PM
Compiling GD massebasse Mac OS X System & Mac Software 1 June 17th, 2001 01:41 PM


All times are GMT -5. The time now is 07:24 AM.


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.