Re: Fink not recognizing command line tools even after postinstall script

David Axler <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>
> “sudo xcodebuild -licence” will be rejected.
It needs to be “sudo xcodebuild -license”



> On Apr 4, 2020, at 4:29 PM, Alexander Hansen <[email protected]> wrote:
> 
> 
> 
>> On Apr 4, 2020, at 08:03, Hanspeter Niederstrasser <[email protected] <mailto:[email protected]>> wrote:
>> 
>> On 4/3/20 8:58 PM, Lebois, Lauren Ann Mcdonough wrote:
>>> Hello Fink Gurus,
>>> I've recently updated my macOS and Developer Tools, and reinstalled Fink, but when I go to use the command 'fink selfupdate-rsync', I get the following error:
>>> Before changing your selfupdate method to 'rsync', you must install
>>> the Xcode Command Line Tools package from
>>> http://developer.apple.com <http://developer.apple.com/> (after free registration),
>>> or via the Downloads tab of the Xcode Preferences.
>>> Failed: Selfupdate method 'rsync' cannot be used
>>> However, I've already installed the Xcode Command Line Tools package... it seems Fink doesn't recognize the change.  Per the Fink FAQ, to address this, I tried running:
>>> /sw/lib/fink/postinstall.pl
>>> However, I now get the following error:
>>> ~ % /sw/lib/fink/postinstall.pl
>>> Checking system... i386-apple-darwin18.7.0
>>> Use of uninitialized value $gcc in regexp compilation at /sw/lib/perl5/Fink/Services.pm line 1348.
>>> Use of uninitialized value $gcc in concatenation (.) or string at /sw/lib/perl5/Fink/Bootstrap.pm line 164.
>>> This system was not released at the time this Fink release was made.
>>> Prerelease versions of Mac OS X might work with Fink, but there are no guarantees.
>>> can't write temporary file: Permission denied at /sw/lib/perl5/Fink/Config.pm line 617.
>>> In case it is helpful my Mac OS version is Mojave Version 10.14.6.  My X Code version is 10.3.
>> 
>> That's a mistake in the FAQ (Q5.24 presumbably). The instructions to run postinstall.pl were probably valid long ago but forgotten to be updated when things changed. For some time now, Apple keeps breaking how the Command Line Tools are registered every single time the OS is updated. You need to actually reinstall the Command Line Tools. Easiest method is to redownload from developer.apple.com <http://developer.apple.com/> (make sure to match the XCode.app version).
>> 
>> Hanspeter
>> 
> 
> Yeah, my recollection is that using postinstall.pl for a fix was for a problem from around 10.5 or 10.6.  For modern Xcode Command Line Tools versions, using “sudo xcode-select --install ” (provided that you have Xcode.app installed) will _sometimes_ download a new version of the command-line tools when you’ve updated the OS.  This seems not always to work, however, and Hanspeter’s advice works under essentially all circumstances.
> 
> One other thing to note is that you will need to run “sudo xcodebuild -licence” after installing the Command Line Tools so that root and fink’s fink-bld user can utilize them.  If you actually installed the Command Line Tools after updating your OS, this is likely to solve your problem.
> 
> -- 
> Alexander Hansen, Ph.D.
> Fink User Liaison
> 
> _______________________________________________
> Fink-beginners mailing list
> [email protected] <mailto:[email protected]>
> List archive:
> https://sourceforge.net/p/fink/mailman/fink-users/ <https://sourceforge.net/p/fink/mailman/fink-users/>
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-beginners <https://lists.sourceforge.net/lists/listinfo/fink-beginners>

_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
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.