www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Installing DUB on OSX

reply Joel <joelcnz gmail.com> writes:
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)?
Feb 17 2016
next sibling parent reply Joel <joelcnz gmail.com> writes:
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'.
Feb 17 2016
next sibling parent reply Guillaume Piolat <name.lastname gmail.com> writes:
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
Feb 18 2016
parent reply Joel <joelcnz gmail.com> writes:
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?
Feb 19 2016
parent reply Jacob Carlborg <doob me.com> writes:
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
Feb 20 2016
parent reply Joel <joelcnz gmail.com> writes:
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$
Feb 23 2016
parent reply Jacob Carlborg <doob me.com> writes:
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
Feb 23 2016
parent reply Joel <joelcnz gmail.com> writes:
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-353A83191ABC6 2C7DFA10932343301C/ 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-265846E0F1E3C 406127D9762F1360F9/ 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-D924A3C3A5A57 D51B048A1FD5A04C95/ 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-68F7517C342E6 4747C39849DE501687/ 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-2EBE4466CF465 9CC1D524962E530835/ 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$
Feb 24 2016
parent reply Jacob Carlborg <doob me.com> writes:
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
Feb 24 2016
parent reply Joel <joelcnz gmail.com> writes:
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$
Feb 24 2016
parent reply Jacob Carlborg <doob me.com> writes:
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
Feb 25 2016
next sibling parent reply Joel <joelcnz gmail.com> writes:
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.
Feb 25 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-02-25 22:38, Joel wrote:

 .dub is grayed out on Finder, and isn't writable.
I'm suspecting that you don't own that directory. You can see the owner by running this: ls -l -a ~/ | grep dub The third column is the owner. You change the owner like this from the Terminal: sudo chown -R joelcnz ~/.dub Assuming "joelcnz" is your user account name. If you do are the owner then it looks like the directory isn't writable. You can check that with the same "ls" command. The permissions are in the first column. It should look like this: drwxr-xr-x Meaning writable, readable and executable by the owner. Readable and executable by the group, readable and executable by everyone else. To make it have those exact permissions, run the following: chmod 755 ~/.dub -- /Jacob Carlborg
Feb 26 2016
parent reply Joel <joelcnz gmail.com> writes:
On Friday, 26 February 2016 at 08:03:19 UTC, Jacob Carlborg wrote:
 On 2016-02-25 22:38, Joel wrote:

 .dub is grayed out on Finder, and isn't writable.
I'm suspecting that you don't own that directory. You can see the owner by running this: ls -l -a ~/ | grep dub The third column is the owner. You change the owner like this from the Terminal: sudo chown -R joelcnz ~/.dub Assuming "joelcnz" is your user account name. If you do are the owner then it looks like the directory isn't writable. You can check that with the same "ls" command. The permissions are in the first column. It should look like this: drwxr-xr-x Meaning writable, readable and executable by the owner. Readable and executable by the group, readable and executable by everyone else. To make it have those exact permissions, run the following: chmod 755 ~/.dub
Things just silently not work. Joels-MacBook-Pro:packages joelcnz$ ls -l -a ~/ | grep dub drwxr-xr-x 4 joelcnz staff 136 26 Sep 12:47 .dub Joels-MacBook-Pro:packages joelcnz$
Feb 27 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-02-28 04:33, Joel wrote:

 Things just silently not work.

 Joels-MacBook-Pro:packages joelcnz$ ls -l -a ~/ | grep dub
 drwxr-xr-x    4 joelcnz  staff     136 26 Sep 12:47 .dub
 Joels-MacBook-Pro:packages joelcnz$
That looks correct. If you don't get any error message it's very hard to help. -- /Jacob Carlborg
Feb 28 2016
next sibling parent Joel <joelcnz gmail.com> writes:
On Sunday, 28 February 2016 at 11:06:26 UTC, Jacob Carlborg wrote:
 On 2016-02-28 04:33, Joel wrote:

 Things just silently not work.

 Joels-MacBook-Pro:packages joelcnz$ ls -l -a ~/ | grep dub
 drwxr-xr-x    4 joelcnz  staff     136 26 Sep 12:47 .dub
 Joels-MacBook-Pro:packages joelcnz$
That looks correct. If you don't get any error message it's very hard to help.
Yes, it does look better. Thanks Jacob.
Feb 28 2016
prev sibling parent reply Joel <joelcnz gmail.com> writes:
On Sunday, 28 February 2016 at 11:06:26 UTC, Jacob Carlborg wrote:
 On 2016-02-28 04:33, Joel wrote:

 Things just silently not work.

 Joels-MacBook-Pro:packages joelcnz$ ls -l -a ~/ | grep dub
 drwxr-xr-x    4 joelcnz  staff     136 26 Sep 12:47 .dub
 Joels-MacBook-Pro:packages joelcnz$
That looks correct. If you don't get any error message it's very hard to help.
Wait a minute, I get this: Build directory .dub/build/application-debug-posix.osx-x86_64-dmd_2070-2EBE4466CF465 9CC1D524962E530835/ is not writable. Falling back to direct build in the system's temp folder.
Mar 01 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-03-02 05:12, Joel wrote:

 Wait a minute, I get this:

 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.
Is ~/.dub writable by you? What about the sub directories, like ~/.dub/build? -- /Jacob Carlborg
Mar 02 2016
parent reply Joel <joelcnz gmail.com> writes:
On Wednesday, 2 March 2016 at 08:55:40 UTC, Jacob Carlborg wrote:
 On 2016-03-02 05:12, Joel wrote:

 Wait a minute, I get this:

 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.
Is ~/.dub writable by you? What about the sub directories, like ~/.dub/build?
I don't seem to have a folder 'build' there. It all seems writable.
Mar 02 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-03-02 23:41, Joel wrote:

 I don't seem to have a folder 'build' there.

 It all seems writable.
Hmm, that's really weird. I guess that's the folder it fails to write. Is it running as a different user. What if you change the permissions to allow everything, i.e. "chmod 777 ~/.dub". Will that make any difference? -- /Jacob Carlborg
Mar 02 2016
parent Joel <joelcnz gmail.com> writes:
On Thursday, 3 March 2016 at 07:07:55 UTC, Jacob Carlborg wrote:
 On 2016-03-02 23:41, Joel wrote:

 I don't seem to have a folder 'build' there.

 It all seems writable.
Hmm, that's really weird. I guess that's the folder it fails to write. Is it running as a different user. What if you change the permissions to allow everything, i.e. "chmod 777 ~/.dub". Will that make any difference?
I tried it and it didn't make any difference.
Mar 03 2016
prev sibling parent Joel <joelcnz gmail.com> writes:
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?
It is path: Macky -> Users/joelcnz and is writable. But .dub etc on the path isn't writable. (joelcnz/.dub)
Feb 25 2016
prev sibling parent reply John Colvin <john.loughran.colvin gmail.com> writes:
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'.
Sounds like you have some problems with your homebrew. What does `brew doctor` give? Did you accidentally use `sudo brew` at some point?
Feb 18 2016
parent reply Joel <joelcnz gmail.com> writes:
On Thursday, 18 February 2016 at 16:33:51 UTC, John Colvin 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'.
Sounds like you have some problems with your homebrew. What does `brew doctor` give? Did you accidentally use `sudo brew` at some point?
I don't think I put 'sudo brew' at any point (I can't remember). I hope I haven't broken my OSX! Joels-MacBook-Pro:Debug joelcnz$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks! Warning: /usr/local/include isn't writable. This can happen if you "sudo make install" software that isn't managed by by Homebrew. If a formula tries to write a file to this directory, the install will fail during the link step. You should probably `chown` /usr/local/include Warning: /usr/local/sbin isn't writable. This can happen if you "sudo make install" software that isn't managed by by Homebrew. If a formula tries to write a file to this directory, the install will fail during the link step. You should probably `chown` /usr/local/sbin Warning: The /usr/local directory is not writable. Even if this directory was writable when you installed Homebrew, other software may change permissions on this directory. Some versions of the "InstantOn" component of Airfoil are known to do this. You should probably change the ownership and permissions of /usr/local back to your user account. Warning: Broken symlinks were found. Remove them with `brew prune`: /usr/local/lib/libSDL2.dylib Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts: /opt/local/bin/freetype-config /opt/local/bin/libpng-config /opt/local/bin/libpng15-config /opt/local/bin/ncurses5-config /opt/local/bin/ncursesw5-config Warning: Your XQuartz (2.7.5) is outdated Please install XQuartz 2.7.7: https://xquartz.macosforge.org Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected dylibs: /usr/local/lib/libdsfml-audio.2.0.dylib /usr/local/lib/libdsfml-graphics.2.0.dylib /usr/local/lib/libdsfml-network.2.0.dylib /usr/local/lib/libdsfml-system.2.0.dylib /usr/local/lib/libdsfml-window.2.0.dylib /usr/local/lib/libsfml-audio.2.1.dylib /usr/local/lib/libsfml-graphics.2.1.dylib /usr/local/lib/libsfml-network.2.1.dylib /usr/local/lib/libsfml-system.2.1.dylib /usr/local/lib/libsfml-window.2.1.dylib /usr/local/lib/libsoloud_x86.dylib Warning: Unbrewed header files were found in /usr/local/include. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected header files: /usr/local/include/DSFML/Audio/Err.h /usr/local/include/DSFML/Audio/Export.h /usr/local/include/DSFML/Audio/Listener.h /usr/local/include/DSFML/Audio/Sound.h /usr/local/include/DSFML/Audio/SoundBuffer.h /usr/local/include/DSFML/Audio/SoundFile.h /usr/local/include/DSFML/Audio/SoundRecorder.h /usr/local/include/DSFML/Audio/SoundSource.h /usr/local/include/DSFML/Audio/SoundStream.h /usr/local/include/DSFML/Audio/Types.h /usr/local/include/DSFML/Config.h /usr/local/include/DSFML/ConvertEvent.h /usr/local/include/DSFML/Graphics/Err.h /usr/local/include/DSFML/Graphics/Export.h /usr/local/include/DSFML/Graphics/Font.h /usr/local/include/DSFML/Graphics/Image.h /usr/local/include/DSFML/Graphics/RenderTexture.h /usr/local/include/DSFML/Graphics/RenderWindow.h /usr/local/include/DSFML/Graphics/Shader.h /usr/local/include/DSFML/Graphics/Text.h /usr/local/include/DSFML/Graphics/Texture.h /usr/local/include/DSFML/Graphics/Transform.h /usr/local/include/DSFML/Graphics/Types.h /usr/local/include/DSFML/Graphics/View.h /usr/local/include/DSFML/Network/Err.h /usr/local/include/DSFML/Network/Export.h /usr/local/include/DSFML/Network/Ftp.h /usr/local/include/DSFML/Network/Http.h /usr/local/include/DSFML/Network/IpAddress.h /usr/local/include/DSFML/Network/Packet.h /usr/local/include/DSFML/Network/SocketSelector.h /usr/local/include/DSFML/Network/TcpListener.h /usr/local/include/DSFML/Network/TcpSocket.h /usr/local/include/DSFML/Network/Types.h /usr/local/include/DSFML/Network/UdpSocket.h /usr/local/include/DSFML/System/Clock.h /usr/local/include/DSFML/System/Err.h /usr/local/include/DSFML/System/Export.h /usr/local/include/DSFML/System/String.h /usr/local/include/DSFML/System/Threads.h /usr/local/include/DSFML/System/Types.h /usr/local/include/DSFML/Window/Context.h /usr/local/include/DSFML/Window/Err.h /usr/local/include/DSFML/Window/Event.h /usr/local/include/DSFML/Window/Export.h /usr/local/include/DSFML/Window/Joystick.h /usr/local/include/DSFML/Window/Keyboard.h /usr/local/include/DSFML/Window/Mouse.h /usr/local/include/DSFML/Window/Types.h /usr/local/include/DSFML/Window/VideoMode.h /usr/local/include/DSFML/Window/Window.h /usr/local/include/DSFML/Window/WindowHandle.h Warning: Unbrewed .la files were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected .la files: /usr/local/lib/libSDL2.la Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected .pc files: /usr/local/lib/pkgconfig/sdl2.pc Warning: Unbrewed static libraries were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected static libraries: /usr/local/lib/libSDL2.a /usr/local/lib/libSDL2_test.a /usr/local/lib/libSDL2main.a Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: dmd wget Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for example like so echo export PATH='/usr/local/sbin:$PATH' >> ~/.bash_profile Joels-MacBook-Pro:Debug joelcnz$
Feb 18 2016
parent reply John Colvin <john.loughran.colvin gmail.com> writes:
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.
Feb 19 2016
parent Joel <joelcnz gmail.com> writes:
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.
Feb 19 2016
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2016-02-18 08:11, 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)?
You usually have read access to most paths. That means you should be able to run dub without sudo. Where is "dub" located? Run "which dub". -- /Jacob Carlborg
Feb 18 2016
parent reply Joel <joelcnz gmail.com> writes:
On Thursday, 18 February 2016 at 08:24:34 UTC, Jacob Carlborg 
wrote:
 On 2016-02-18 08:11, 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)?
You usually have read access to most paths. That means you should be able to run dub without sudo. Where is "dub" located? Run "which dub".
It's currently in '/usr/local/bin'. How do I add it to '/usr/bin' (or what ever)? I get: Joels-MacBook-Pro:Downloads joelcnz$ cp dub /usr/bin cp: /usr/bin/dub: Operation not permitted
Feb 18 2016
parent reply Edwin van Leeuwen <edder tkwsping.nl> writes:
On Thursday, 18 February 2016 at 09:25:00 UTC, Joel wrote:
 On Thursday, 18 February 2016 at 08:24:34 UTC, Jacob Carlborg 
 wrote:
 On 2016-02-18 08:11, 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)?
You usually have read access to most paths. That means you should be able to run dub without sudo. Where is "dub" located? Run "which dub".
It's currently in '/usr/local/bin'. How do I add it to '/usr/bin' (or what ever)? I get: Joels-MacBook-Pro:Downloads joelcnz$ cp dub /usr/bin cp: /usr/bin/dub: Operation not permitted
sudo cp dub /usr/bin/ but to be honest I would delete dub (sudo rm /usr/local/bin/dub) and then try to install it with homebrew again.
Feb 18 2016
parent Jacob Carlborg <doob me.com> writes:
On 2016-02-18 10:55, Edwin van Leeuwen wrote:

 sudo cp dub /usr/bin/
It should say in /usr/local/bin. Because users don't have write access to /usr/bin on OS X 10.11, even with sudo. -- /Jacob Carlborg
Feb 18 2016