Installing DUB on OSX
Jacob Carlborg via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Feb 24 07:16:17 PST 2016
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.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list