Re: Upgrading GIT via MacPorts OS X Mountain Lion

Mark Ritchie <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Sounds like you might need to use:
xcode-select -switch xcode_path

See here for details:
http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html

For me, Xcode lives in /Applications
Mark

Sent from my iPhone

On 2012-10-31, at 11:50, Michael Hast <[email protected]> wrote:

> Kieran and Mark:
> 
> I did install MacPorts yesterday for the first time after building git 
> 1.8.0 via make did not work. Did you do anything special to your bash 
> environment/Mac OS X setup to make MacPorts run? I only ask because the 
> first thing I had to do was create a symbolic link to 'make', because it 
> now is in /Developer/usr/bin (and /Developer/usr/bin is in my path).
> 
> As far as I can tell MacPorts does not build because it can't find 
> crt1.10.6.o which is in /Developer/SDKs/MacOSX10.7/usr/lib. So I changed 
> the following environment variables, but how do I pass those to macports?
> 
> sudo ln -s /Developer/usr/share/autoconf /usr/share
> 
> export LDFLAGS="-L/usr/lib -L/Developer/SDKs/MacOSX10.7.sdk/usr/lib 
> -R/usr/lib -R/Developer/SDKs/MacOSX10.7.sdk/usr/lib"
> export CFLAGS="-I/Developer/SDKs/MacOSX10.7.sdk/usr/include"
> export CPPFLAGS="-I/Developer/SDKs/MacOSX10.7.sdk/usr/include"
> 
> Michael
> 
> On 10/31/2012 5:23 AM, Kieran Kelleher wrote:
>> Hi Michael,
>> 
>> No issues here with macports either ....... I will say that sometimes after upgrading to a new release of OS X, I sometimes have to uninstall macports and reinstall to get it working properly again (http://guide.macports.org/chunked/installing.macports.uninstalling.html). It may be a drastic step, but it is a fresh macports start afterwards.
>> 
>> Also, I usually do a sudo port -d selfupdate before installing something new.
>> 
>> Hope that helps,
>> 
>> KK
>> 
>> On Oct 30, 2012, at 10:39 PM, Mark Ritchie <[email protected]> wrote:
>> 
>>> Interesting pointer to homebrew, I'll have to check that out.
>>> 
>>> For the record,
>>> sudo port install git-core
>>> Just worked for me on 10.8.2
>>> Recently cleanly installed the machine and only about 8 previous port installs (top level requests, not counting all the bits which for example support wireshark. ;-)
>>> I got
>>> git-core @1.7.12.3, Revision 1 (devel)
>>> in case the specific version helps.
>>> 
>>> In the past I've had success with building variants when the default would not build. YMMV widely. ;-)
>>> 
>>> Good luck!
>>> Mark
>>> 
>>> Sent from my iPhone
>>> 
>>> On 2012-10-30, at 16:45, Maik Musall <[email protected]> wrote:
>>> 
>>>> Hi Michael,
>>>> 
>>>> I suggest moving away from macports and use homebrew. Much less hassle. I've started with a few machines and have now migrated all of them.
>>>> 
>>>> Maik
>>>> 
>>>> 
>>>> Am 30.10.2012 um 21:34 schrieb Michael Hast <[email protected]>:
>>>> 
>>>>> Hello:
>>>>> 
>>>>> I watched Kieran's talk about GIT from last years WOWODC. He has a slide
>>>>> approving MacPorts to install git. Well git is already installed on my
>>>>> Mac OS X (Mountain Lion) machine, but I would like to upgrade it. I am
>>>>> using MacPorts todo so.
>>>>> 
>>>>> sudo port install git-core +svn+bash_completion
>>>>> 
>>>>> I get the error:
>>>>> 
>>>>> :info:configure checking whether the C compiler works... no
>>>>> :info:configure configure: error: in
>>>>> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.1.0':
>>>>> :info:configure configure: error: C compiler cannot create executables
>>>>> :info:configure See `config.log' for more details
>>>>> 
>>>>> From the config.log I get:
>>>>> 
>>>>> configure:3215:
>>>>> /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -pipe
>>>>> -O2 -arch x86_64 -I/opt/local/include -L/opt/local/lib -arch x86_64
>>>>> conftest.c  >&5
>>>>> ld: library not found for -lcrt1.10.6.o
>>>>> collect2: ld returned 1 exit status
>>>>> 
>>>>> It can't find crt1.10.6.o, so I did the following:
>>>>> 
>>>>> export C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.7.sdk/usr/include
>>>>> export LIBRARY_PATH=/Developer/SDKs/MacOSX10.7.sdk/usr/lib
>>>>> 
>>>>> I still get the same error. Has anyone used MacPorts with Xcode 4.5.1
>>>>> installed on Mountain Lion to install/upgrade git?
>>>>> 
>>>>> Michael
>>>>> --
>>>>> Tel: (602) 279-4600 ext: 635
>>>>> Desert Sky Software: www.desertsky.com
>>>>>   Specializing in the Development and Hosting of
>>>>>   e-Business Applications.
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Everyone hates slow websites. So do we.
>>>>> Make your web apps faster with AppDynamics
>>>>> Download AppDynamics Lite for free today:
>>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>>> _______________________________________________
>>>>> Wonder-disc mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>> _______________________________________________
>>>> Wonder-disc mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>>> 
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>> _______________________________________________
>>> Wonder-disc mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
> 
> -- 
> Tel: (602) 279-4600 ext: 635
> Desert Sky Software: www.desertsky.com
>     Specializing in the Development and Hosting of
>     e-Business Applications.
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Wonder-disc mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wonder-disc

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct

_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.