February 19, 2016
On Friday, 19 February 2016 at 11:34:33 UTC, John Colvin wrote:
> On Thursday, 18 February 2016 at 23:28:43 UTC, Joel wrote:
>> On Thursday, 18 February 2016 at 16:33:51 UTC, John Colvin wrote:
>>> [...]
>>
>> I don't think I put 'sudo brew' at any point (I can't remember). I hope I haven't broken my OSX!
>>
>> [...]
>
> Did you recently upgrade OS X? Anyway, you should probably work through the suggestions from brew doctor, then brew update, then brew upgrade.

I did recently upgrade OS X.

I'm not sure I can do any thing with brew issues.

February 20, 2016
On Thursday, 18 February 2016 at 08:18:20 UTC, Guillaume Piolat wrote:
> On Thursday, 18 February 2016 at 07:52:11 UTC, Joel wrote:
>> On Thursday, 18 February 2016 at 07:11:23 UTC, Joel wrote:
>>> I had dub installed in a folder that meant I had to put 'sudo dub' to run it. I've tried to fix the problem, but where do you put it (also I tried one place, but couldn't put it in that folder)?
>>
>> I've now tried 'brew install dub' and 'brew upgrade dub', but they come up with, 'Warning: dub-0.9.22 already installed', or 'Error: dub 0.9.22 already installed'.
>
> What I do here:
>
> - git clone DUB to ~/Desktop/dub
> - built it with build.sh
> - put symbolic links to the binary in /usr/bin

How do you do symbolic links?
February 20, 2016
On 2016-02-20 04:21, Joel wrote:

> How do you do symbolic links?

ln -s <source> <target>

Replace <source> and <target> with the appropriate paths.

-- 
/Jacob Carlborg
February 24, 2016
On Saturday, 20 February 2016 at 12:01:04 UTC, Jacob Carlborg wrote:
> On 2016-02-20 04:21, Joel wrote:
>
>> How do you do symbolic links?
>
> ln -s <source> <target>
>
> Replace <source> and <target> with the appropriate paths.

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$

February 24, 2016
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.

-- 
/Jacob Carlborg
February 24, 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$

February 24, 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
February 24, 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$

February 25, 2016
On 2016-02-24 23:11, Joel wrote:

> Error: Error writing file
> '../../../.dub/packages/dsfml-2.1.0/libdsfml_system.a'
> Joels-MacBook-Pro:DGuy joelcnz$

Is the full path of ../../../.dub/packages/dsfml-2.1.0 writable?

-- 
/Jacob Carlborg
February 25, 2016
On Thursday, 25 February 2016 at 11:06:09 UTC, Jacob Carlborg wrote:
> On 2016-02-24 23:11, Joel wrote:
>
>> Error: Error writing file
>> '../../../.dub/packages/dsfml-2.1.0/libdsfml_system.a'
>> Joels-MacBook-Pro:DGuy joelcnz$
>
> Is the full path of ../../../.dub/packages/dsfml-2.1.0 writable?

.dub is grayed out on Finder, and isn't writable.