Re: Installing DUB on OSX

2016-03-03 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-03-02 Thread Jacob Carlborg via Digitalmars-d-learn
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".

Re: Installing DUB on OSX

2016-03-02 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-03-02 Thread Jacob Carlborg via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-03-02 Thread Joel via Digitalmars-d-learn
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-x4 joelcnz staff 136 26 Sep 12:47 .dub Joels-MacBook-Pro:packages joelcnz$ That

Re: Installing DUB on OSX

2016-02-28 Thread Joel via Digitalmars-d-learn
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-x4 joelcnz staff 136 26 Sep 12:47 .dub Joels-MacBook-Pro:packages joelcnz$ That

Re: Installing DUB on OSX

2016-02-28 Thread Jacob Carlborg via Digitalmars-d-learn
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-x4 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

Re: Installing DUB on OSX

2016-02-27 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-26 Thread Jacob Carlborg via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-25 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-25 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-25 Thread Jacob Carlborg via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-24 Thread Joel via Digitalmars-d-learn
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=:$PATH Replace with the

Re: Installing DUB on OSX

2016-02-24 Thread Jacob Carlborg via Digitalmars-d-learn
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=:$PATH Replace with the path you want to add. Close and save the file. Open a new window/tab in

Re: Installing DUB on OSX

2016-02-24 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-23 Thread Jacob Carlborg via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-23 Thread Joel via Digitalmars-d-learn
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 Replace and 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

Re: Installing DUB on OSX

2016-02-20 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-02-20 04:21, Joel wrote: How do you do symbolic links? ln -s Replace and with the appropriate paths. -- /Jacob Carlborg

Re: Installing DUB on OSX

2016-02-19 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-19 Thread Joel via Digitalmars-d-learn
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!

Re: Installing DUB on OSX

2016-02-19 Thread John Colvin via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-18 Thread Joel via Digitalmars-d-learn
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,

Re: Installing DUB on OSX

2016-02-18 Thread Jacob Carlborg via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-18 Thread John Colvin via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-18 Thread Edwin van Leeuwen via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-18 Thread Joel via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-18 Thread Jacob Carlborg via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-18 Thread Guillaume Piolat via Digitalmars-d-learn
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

Re: Installing DUB on OSX

2016-02-17 Thread Joel via Digitalmars-d-learn
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

Installing DUB on OSX

2016-02-17 Thread Joel via Digitalmars-d-learn
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)?