|
#1
| |||
| |||
| 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. |
|
#2
| ||||
| ||||
| 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 |
|
#3
| |||
| |||
| 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. |
|
#4
| ||||
| ||||
| 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 |
|
#5
| ||||
| ||||
| 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. |
|
#6
| |||
| |||
| 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. ![]() |
|
#7
| |||
| |||
| Quote:
|
|
#8
| |||
| |||
| 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? |
![]() |
| Thread Tools | |
|
|
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 |