Installing DUB on OSX

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 24 00:09:20 PST 2016


On Wednesday, 24 February 2016 at 07:35:40 UTC, Jacob Carlborg 
wrote:
> On 2016-02-24 07:49, Joel wrote:
>
>> I get this:
>>
>> Joels-MacBook-Pro:bin joelcnz$ ln -s /usr/local/bin/dub 
>> /usr/bin
>> ln: /usr/bin/dub: Operation not permitted
>> Joels-MacBook-Pro:bin joelcnz$
>
> If you have OS X 10.10.x or lower you can prefix the command 
> with "sudo". If you have OS X 10.11 or later you cannot write 
> to /usr/bin.

I have OS X version 10.11.3

What about adding another path to $PATH? I don't know how though.

I get this with DUB:

Joels-MacBook-Pro:DGuy joelcnz$ dub --force
Performing "debug" build using dmd for x86_64.
Build directory 
../../../.dub/packages/dsfml-2.1.0/.dub/build/library-debug-posix.osx-x86_64-dmd_2070-353A83191ABC652C7DFA10932343301C/ is not writable. Falling back to direct build in the system's temp folder.
dsfml:system 2.1.0: building configuration "library"...
Build directory 
../../../.dub/packages/dsfml-2.1.0/.dub/build/library-debug-posix.osx-x86_64-dmd_2070-265846E0F1E3C7406127D9762F1360F9/ is not writable. Falling back to direct build in the system's temp folder.
dsfml:audio 2.1.0: building configuration "library"...
Build directory 
../../../.dub/packages/dsfml-2.1.0/.dub/build/library-debug-posix.osx-x86_64-dmd_2070-D924A3C3A5A575D51B048A1FD5A04C95/ is not writable. Falling back to direct build in the system's temp folder.
dsfml:window 2.1.0: building configuration "library"...
Build directory 
../../../.dub/packages/dsfml-2.1.0/.dub/build/library-debug-posix.osx-x86_64-dmd_2070-68F7517C342E684747C39849DE501687/ is not writable. Falling back to direct build in the system's temp folder.
dsfml:graphics 2.1.0: building configuration "library"...
Build directory 
.dub/build/application-debug-posix.osx-x86_64-dmd_2070-2EBE4466CF46539CC1D524962E530835/ is not writable. Falling back to direct build in the system's temp folder.
jex ~master: building configuration "application"...
Linking...
2016-02-24 21:06:38.614 xcodebuild[1076:208774] [MT] 
PluginLoading: Skipping plug-in at path '/Library/Application 
Support/Developer/Shared/Xcode/Plug-ins/D for Xcode.xcplugin' 
because it is not compatible with this version of Xcode.
2016-02-24 21:06:40.157 xcodebuild[1079:208795] [MT] 
PluginLoading: Skipping plug-in at path '/Library/Application 
Support/Developer/Shared/Xcode/Plug-ins/D for Xcode.xcplugin' 
because it is not compatible with this version of Xcode.
ld: can't write output file: jex for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to 
see invocation)
--- errorlevel 1
dmd failed with exit code 1.
Joels-MacBook-Pro:DGuy joelcnz$



More information about the Digitalmars-d-learn mailing list