English 中文(简体)
Question about Macports
原标题:
  • 时间:2009-11-20 03:37:29
  •  标签:
  • macports

I just got Macports installed on my mac, of which os version is Snow Leopard (10.6). I used Macports to install several packages through sudo port install command, and all these packages are reported active after the installation. I just wonder that whether these packages are really working? For example, macports tells me that gcc44 @4.4.2_0 (active) , however in python it says [GCC 4.0.1 (Apple Inc. build 5493)] on darwin .

So I just want to know that if there is some problem with my method of installing or my macports needs some configuration after installation?

Any help is appreciated! I am really new in Mac OS.

最佳回答

I believe Python is declaring the version of gcc used to build it which should be the gcc installed on your Mac i.e. the version that came with the Mac OS Development tools. This should be located in /usr/bin/gcc.

You should find the gcc version matches when you execute

/usr/bin/gcc -v

I do not think anything is wrong with your setup or configuration. It just shows Python was compiled using the gcc provided by Apple

问题回答

Macports installs software not to conflict with the versions provided by Apple. If they replaced the C compiler and libraries, really bad things might happen when Apple provided operating system updates.

gcc is the command for Apple s version of gcc, at /usr/bin and version 4.0.1 for Leopard.

gcc-mp-4.4 is the command for gcc version 4.4 as provided by MacPorts, located at /opt/local/bin.

Similarly there will be versions of python in /opt/local/bin.

Like houmam, I prefer to explicitly invoke versions by name. If you want to connect particular versions to python, I think that the MacPorts package python_select (this has now been replace by port select python) implements this by using symbolic links. I ve never used it.

It probably is just that compiler that was picked by the build was that installed by XCode. You can try typing which gcc to see which one is in your path. The macports one would by default be in /opt/local somewhere.





相关问题
Where is $ERL_TOP on a macports installation of Erlang

I ve installed Erlang through macports on my macbook and I m trying to use the Erlang Eclipse plugin, but it needs me to point it to the $ERL_TOP directory. Where does that exist? I know my erl ...

Install git-core +svn fails with MacPort

I tried several tricks, clean all, and no luck. Any tips? sudo port install git-core +svn +doc ---> Computing dependencies for git-core ---> Building db46 Error: Target org.macports.build ...

mysql + ruby = nightmare

Ok, I m done. I can t understand why I got this error with: rake features It cant be I can t connect to mysql cause the: rake db:migrate works perfectly. I keep having this error: rake features ...

how to flush macports installation queue?

I wanted to install git with macports - it failed. ok. So I went with dmg - succeeded. However, now I cannot remove git from some install queue and if I want install anything it still fetches git ...

Question about Macports

I just got Macports installed on my mac, of which os version is Snow Leopard (10.6). I used Macports to install several packages through sudo port install command, and all these packages are ...

macports confusion

hey i am new to the macports thing as i recently switched to the mac. as i was thinking of developing some applications in my mac i wanted all the usual gnu and opensource tools i need. but i had a ...

Finding the correct Python framework with cmake

I am using the macports version of python on a Snow Leopard computer, and using cmake to build a cross-platform extension to it. I search for the python interpreter and libraries on the system using ...

Unable to install Git-core+svn by MacPorts

I am trying to install git-svn on mac os x 10.5 using the following command, sudo port install git-core +svn It installation is successful but i can find the git-svn command anywhere, ~/ $ sudo ...

热门标签