Installing DUB on OSX

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 24 14:11:17 PST 2016


On Wednesday, 24 February 2016 at 15:16:17 UTC, Jacob Carlborg 
wrote:
> On 2016-02-24 09:09, Joel wrote:
>
>> I have OS X version 10.11.3
>>
>> What about adding another path to $PATH? I don't know how 
>> though.
>
> Open or create ~/.bash_profile. Add the following:
>
> export PATH=<some path>:$PATH
>
> Replace <some path> with the path you want to add. Close and 
> save the file. Open a new window/tab in the Terminal for the 
> change to take affect.
>
>> 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$
>
> Run "dub build --force --verbose" to see command it uses for 
> linking. Run that command manually and append "-L-v" (without 
> quotes) to see the verbose output from the linker.

I added a new path ($PATH):

Joels-MacBook-Pro:DGuy joelcnz$ which dub
/Users/joelcnz/jpro/bin/dub
Joels-MacBook-Pro:DGuy joelcnz$

I get this:

Joels-MacBook-Pro:DGuy joelcnz$ dmd -lib 
-of../../../.dub/packages/dsfml-2.1.0/libdsfml_system.a -debug -g 
-w -version=Have_dsfml_system 
-I../../../.dub/packages/dsfml-2.1.0/src/ 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/clock.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/config.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/err.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/inputstream.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/lock.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/mutex.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/package.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/sleep.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/string.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/thread.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/time.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/vector2.d 
../../../.dub/packages/dsfml-2.1.0/src/dsfml/system/vector3.d 
-vcolumns -L-v
Error: Error writing file 
'../../../.dub/packages/dsfml-2.1.0/libdsfml_system.a'
Joels-MacBook-Pro:DGuy joelcnz$



More information about the Digitalmars-d-learn mailing list