Re: Unable to install ROOT version 5-32-01 on mac 10.7.3 with gcc version 4.2.1

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Thu, 1 Mar 2012 17:30:47 +0100


Hi Monika,

  remove the entire /sw directory and, if you need Fink tools, reinstall again from source for x8664. You still have an old PowerPC tree it seems.

Then do:

cd root
make distclean
./configure
make

to rebuild ROOT.

Cheers, Fons.

On 01/03/2012 17:21, Monika Sharma wrote:
>
> Hi Fons,
>
> So this is what I executed now.
>
> [Monika-4:~] monikas% which tar
> /sw/bin/tar
> [Monika-4:~] monikas% sudo rm /sw/bin/tar
> Password:
> [Monika-4:~] monikas%
>
> [Monika-4:~] monikas% which tar
> /usr/bin/tar
>
> and exactly the same for gunzip.
>
> However, now I get the following error.
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make: *** [lib/libGraf.so] Error 1
>
> Regards
> Monika
>
>
> On 3/1/12 10:02 AM, Fons Rademakers wrote:
>> It looks like you have some old MacPorts or Fink directory laying around
>> which provides gunzip and tar as PowerPC binaries. Please remove them and
>> make sure that
>>
>> $ which tar
>>
>> report /usr/bin/tar the same for gunzip.
>>
>> Cheers, Fons.
>>
>> On 01/03/2012 16:51, Monika Sharma wrote:
>>>
>>> Dear Fons,
>>>
>>> I installed command line tools from xcode but I still get the same error.
>>>
>>> *** Building core/pcre/src/pcre-7.8/.libs/libpcre.a...
>>> Launch of "gunzip" failed: the PowerPC architecture is no longer supported.
>>> Launch of "tar" failed: the PowerPC architecture is no longer supported.
>>> /bin/sh: line 0: cd: pcre-7.8: No such file or directory
>>> /bin/sh: ./configure: No such file or directory
>>> make[1]: *** No rule to make target `libpcre.la'. Stop.
>>> make: *** [core/pcre/src/pcre-7.8/.libs/libpcre.a] Error 2
>>>
>>> Regards
>>> Monika
>>>
>>> On 3/1/12 9:15 AM, Fons Rademakers wrote:
>>>> Did you install the latest Xcode 4.3 on you machine? If so you need to
>>>> install, seperately, the command line tools, like compiler etc. In Xcode
>>>> 4.3 go to Preferences/Downloads and make sure that "Command Line Tools"
>>>> are downloaded. That will give you the official clang++ compiler.
>>>>
>>>> Cheers, Fons.
>>>>
>>>>
>>>> On 01/03/2012 16:11, Monika Sharma wrote:
>>>>>
>>>>> Dear Fons,
>>>>>
>>>>> Thanks for your reply. Something was indeed not standard in my machine as
>>>>> it didn't find gcc with the usual command "gcc -v". Anyhow I reinstalled
>>>>> xcode
>>>>> which at least shows that the machine has gcc.
>>>>>
>>>>> But the output of the following command throws garbage at me:
>>>>>
>>>>> [Monika-4:~] monikas% gunzip -c pcre-7.8.tar.gz | tar xf - Launch of
>>>>> "Lguanzuinp"c hfa iolefd : "tthaer P"o wefraPCi larecdhi:te cttuhree isP
>>>>> noo wleorngPeCr saurpcphorittede.c
>>>>> ture is no longer supported.
>>>>>
>>>>> Also, the reason I tried with gcc instead of clang is because I get "no C
>>>>> compiler found" error.
>>>>>
>>>>> ------------------------------------------------------------
>>>>> Checking for source directory ... /opt/alice/root/v5-32-01
>>>>> Configuring for macosx64
>>>>> Checking for GNU Make version >= 3.80 ... ok
>>>>> Checking for C compiler ... no C compiler clang found
>>>>> configure: C compiler MUST be installed
>>>>> See http://root.cern.ch/drupal/content/build-prerequisites
>>>>> ------------------------------------------------------------
>>>>>
>>>>> I will greatly appreciate if you can help me solve this issue.
>>>>>
>>>>> Regards
>>>>> Monika
>>>>>
>>>>>
>>>>>
>>>>> On 3/1/12 8:03 AM, Fons Rademakers wrote:
>>>>>> Dear Monika,
>>>>>>
>>>>>> it fails because there is something not standard about your machine.
>>>>>> What
>>>>>> have you installed outside of Xcode ? the pcre-7.8 directory does not
>>>>>> exist when
>>>>>> gunzip -c pcre-7.8.tar.gz | tar xf -
>>>>>> fails. Can you check if these command work correctly? Also if this is
>>>>>> 10.7.3 you should be using the clang compiler by default and not gcc
>>>>>> 4.2.1.
>>>>>>
>>>>>> Cheers, Fons.
>>>>>>
>>>>>>
>>>>>> On 01/03/2012 06:54, Monika Sharma wrote:
>>>>>>>
>>>>>>> Dear ROOT experts,
>>>>>>>
>>>>>>> I am trying to install ROOT version 5-32-01 on mac 10.7.3 with gcc
>>>>>>> version
>>>>>>> 4.2.1.
>>>>>>> But I get the following error:
>>>>>>>
>>>>>>> ==================================================
>>>>>>> *** Building core/pcre/src/pcre-7.8/.libs/libpcre.a...
>>>>>>> LaunLcha uofn "cghu nozfi p""t afra"i lfeadi:l etdh:e tPhoew eProPwCe
>>>>>>> raPrCc hairtcehcittuercet uirse nios lnoon gleorng esru pspourted.
>>>>>>> pported.
>>>>>>> /bin/sh: line 0: cd: pcre-7.8: No such file or directory
>>>>>>> /bin/sh: ./configure: No such file or directory
>>>>>>> make[1]: *** No rule to make target `libpcre.la'. Stop.
>>>>>>> make: *** [core/pcre/src/pcre-7.8/.libs/libpcre.a] Error 2
>>>>>>>
>>>>>>> Any help is greatly appreciated.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Monika
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640


Received on Thu Mar 01 2012 - 17:30:53 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 01 2012 - 23:50:01 CET