Thread overview | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 05, 2006 Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Hello guys (and girls, perhaps), I've written a little bash script to ease the 'pain' (or for that matter shorten the time needed for) of an installation of DMD under Linux. Just unpack the dmd.zip and put the install.sh into the same directory, run it as root, and be happy. :) Usage: /install.sh <prefix> .where <prefix> is something like /usr, /usr/local or where ever you want phobos' sources and dmd to be living. https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh There's also a PKGBUILD available, written by a friend of mine: https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD Maybe it helps someone.., Alex |
February 06, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to alexander.panek | Why not use wget to download dmd.zip for you?
alexander.panek@brainsware.org wrote:
> Hello guys (and girls, perhaps),
>
> I've written a little bash script to ease the 'pain' (or for that matter shorten
> the time needed for) of an installation of DMD under Linux. Just unpack the
> dmd.zip and put the install.sh into the same directory, run it as root, and be
> happy. :)
>
> Usage:
> /install.sh <prefix>
>
> .where <prefix> is something like /usr, /usr/local or where ever you want
> phobos' sources and dmd to be living.
>
> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh
>
>
> There's also a PKGBUILD available, written by a friend of mine:
>
> https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD
>
> Maybe it helps someone..,
> Alex
>
>
|
February 06, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to clayasaurus | In article <ds64ek$1opv$1@digitaldaemon.com>, clayasaurus says... > >Why not use wget to download dmd.zip for you? > I could add that too, of course. I'll just ask for switch like -d or --download. Alex |
February 06, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to alexander.panek | In article <ds61j7$1mv5$1@digitaldaemon.com>, alexander.panek@brainsware.org says... > >Hello guys (and girls, perhaps), > >I've written a little bash script to ease the 'pain' (or for that matter shorten the time needed for) of an installation of DMD under Linux. Just unpack the dmd.zip and put the install.sh into the same directory, run it as root, and be happy. :) > >Usage: >/install.sh <prefix> > >.where <prefix> is something like /usr, /usr/local or where ever you want phobos' sources and dmd to be living. > >https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh > > >There's also a PKGBUILD available, written by a friend of mine: > >https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD > >Maybe it helps someone.., >Alex > > Added a few lines to give the possibility to download dmd.zip via install.sh: Usage: /install.sh <prefix> [-d] <prefix> -> as usual -d -> Download dmd.zip from http://ftp.digitalmars.com/dmd.zip (DMDZIP_URL) Alex |
February 06, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | In article <ds66j6$1q9q$1@digitaldaemon.com>, Alexander Panek says... > >In article <ds61j7$1mv5$1@digitaldaemon.com>, alexander.panek@brainsware.org says... >> >>Hello guys (and girls, perhaps), >> >>I've written a little bash script to ease the 'pain' (or for that matter shorten the time needed for) of an installation of DMD under Linux. Just unpack the dmd.zip and put the install.sh into the same directory, run it as root, and be happy. :) >> >>Usage: >>/install.sh <prefix> >> >>.where <prefix> is something like /usr, /usr/local or where ever you want phobos' sources and dmd to be living. >> >>https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh >> >> >>There's also a PKGBUILD available, written by a friend of mine: >> >>https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD >> >>Maybe it helps someone.., >>Alex >> >> > >Added a few lines to give the possibility to download dmd.zip via install.sh: > >Usage: >/install.sh <prefix> [-d] > ><prefix> -> as usual >-d -> Download dmd.zip from http://ftp.digitalmars.com/dmd.zip (DMDZIP_URL) > >Alex > > Yet another update: I've added some nice output and a cleaning up to the script. I renamed it also to install-d.sh. Here's the new link: https://80.108.15.143/svn/ocb/tools/dmd/install-d.sh Alex |
February 06, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | In article <ds68nk$1rvm$1@digitaldaemon.com>, Alexander Panek says... > >In article <ds66j6$1q9q$1@digitaldaemon.com>, Alexander Panek says... >> >>In article <ds61j7$1mv5$1@digitaldaemon.com>, alexander.panek@brainsware.org says... >>> >>>Hello guys (and girls, perhaps), >>> >>>I've written a little bash script to ease the 'pain' (or for that matter shorten the time needed for) of an installation of DMD under Linux. Just unpack the dmd.zip and put the install.sh into the same directory, run it as root, and be happy. :) >>> >>>Usage: >>>/install.sh <prefix> >>> >>>.where <prefix> is something like /usr, /usr/local or where ever you want phobos' sources and dmd to be living. >>> >>>https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh >>> >>> >>>There's also a PKGBUILD available, written by a friend of mine: >>> >>>https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD >>> >>>Maybe it helps someone.., >>>Alex >>> >>> >> >>Added a few lines to give the possibility to download dmd.zip via install.sh: >> >>Usage: >>/install.sh <prefix> [-d] >> >><prefix> -> as usual >>-d -> Download dmd.zip from http://ftp.digitalmars.com/dmd.zip (DMDZIP_URL) >> >>Alex >> >> > > >Yet another update: > >I've added some nice output and a cleaning up to the script. I renamed it also to install-d.sh. > >Here's the new link: > >https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh > >Alex > > I hate newsgroups for not being able to edit posts.. or for that matter: for having to think and read before posting. :P Here's a working link: https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh Alex |
February 12, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | Alexander Panek wrote:
> In article <ds68nk$1rvm$1@digitaldaemon.com>, Alexander Panek says...
>
>>In article <ds66j6$1q9q$1@digitaldaemon.com>, Alexander Panek says...
>>
>>>In article <ds61j7$1mv5$1@digitaldaemon.com>, alexander.panek@brainsware.org
>>>says...
>>>
>>>>Hello guys (and girls, perhaps),
>>>>
>>>>I've written a little bash script to ease the 'pain' (or for that matter shorten
>>>>the time needed for) of an installation of DMD under Linux. Just unpack the
>>>>dmd.zip and put the install.sh into the same directory, run it as root, and be
>>>>happy. :)
>>>>
>>>>Usage:
>>>>/install.sh <prefix>
>>>>
>>>>.where <prefix> is something like /usr, /usr/local or where ever you want
>>>>phobos' sources and dmd to be living.
>>>>
>>>>https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh
>>>>
>>>>
>>>>There's also a PKGBUILD available, written by a friend of mine:
>>>>
>>>>https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD
>>>>
>>>>Maybe it helps someone..,
>>>>Alex
>>>>
>>>>
>>>
>>>Added a few lines to give the possibility to download dmd.zip via install.sh:
>>>
>>>Usage:
>>>/install.sh <prefix> [-d]
>>>
>>><prefix> -> as usual
>>>-d -> Download dmd.zip from http://ftp.digitalmars.com/dmd.zip (DMDZIP_URL)
>>>
>>>Alex
>>>
>>>
>>
>>
>>Yet another update:
>>
>>I've added some nice output and a cleaning up to the script. I renamed it also
>>to install-d.sh.
>>
>>Here's the new link:
>>
>>https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh
>>
>>Alex
>>
>>
>
>
> I hate newsgroups for not being able to edit posts.. or for that matter: for
> having to think and read before posting. :P
>
> Here's a working link:
>
> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh
>
> Alex
>
>
I have to be root?
I'm not the root on my university's linux boxes, is there a workaround?
|
February 12, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hasan Aljudy | Hasan Aljudy wrote:
> Alexander Panek wrote:
>
>> In article <ds68nk$1rvm$1@digitaldaemon.com>, Alexander Panek says...
>>
>>> In article <ds66j6$1q9q$1@digitaldaemon.com>, Alexander Panek says...
>>>
>>>> In article <ds61j7$1mv5$1@digitaldaemon.com>, alexander.panek@brainsware.org
>>>> says...
>>>>
>>>>> Hello guys (and girls, perhaps),
>>>>>
>>>>> I've written a little bash script to ease the 'pain' (or for that matter shorten
>>>>> the time needed for) of an installation of DMD under Linux. Just unpack the
>>>>> dmd.zip and put the install.sh into the same directory, run it as root, and be
>>>>> happy. :)
>>>>>
>>>>> Usage:
>>>>> /install.sh <prefix>
>>>>>
>>>>> .where <prefix> is something like /usr, /usr/local or where ever you want
>>>>> phobos' sources and dmd to be living.
>>>>>
>>>>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh
>>>>>
>>>>>
>>>>> There's also a PKGBUILD available, written by a friend of mine:
>>>>>
>>>>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD
>>>>>
>>>>> Maybe it helps someone..,
>>>>> Alex
>>>>>
>>>>>
>>>>
>>>> Added a few lines to give the possibility to download dmd.zip via install.sh:
>>>>
>>>> Usage:
>>>> /install.sh <prefix> [-d]
>>>>
>>>> <prefix> -> as usual
>>>> -d -> Download dmd.zip from http://ftp.digitalmars.com/dmd.zip (DMDZIP_URL)
>>>>
>>>> Alex
>>>>
>>>>
>>>
>>>
>>> Yet another update:
>>>
>>> I've added some nice output and a cleaning up to the script. I renamed it also
>>> to install-d.sh.
>>>
>>> Here's the new link:
>>>
>>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh
>>>
>>> Alex
>>>
>>>
>>
>>
>> I hate newsgroups for not being able to edit posts.. or for that matter: for
>> having to think and read before posting. :P
>>
>> Here's a working link:
>>
>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh
>>
>> Alex
>>
>>
>
> I have to be root?
> I'm not the root on my university's linux boxes, is there a workaround?
There's a no-root option available ( --noroot ) for purposes like this. I'd be glad for any further improvement ideas, if you have some.
Regards, Alex
|
February 12, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hasan Aljudy Attachments: | Hasan Aljudy schrieb am 2006-02-12:
[snip]
> I have to be root?
> I'm not the root on my university's linux boxes, is there a workaround?
Below I assume that your home directory is "/home/user".
1) cd /home/user
3) download the current dmd.zip and save as /home/user/dmd.zip
4) unzip dmd.zip
5) chmod +x /home/user/dmd/bin/dmd
6) create the file /home/user/dmd.sh with the following 2 lines:
#!/bin/bash
/home/user/dmd/bin/dmd -I/home/user/dmd/src/phobos -L-L/home/user/dmd/lib $*
7) chmod =rx /home/user/dmd.sh
8) happy compiling, e.g.: /home/user/dmd.sh source.d
Thomas
|
February 13, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | Alexander Panek wrote: > Hasan Aljudy wrote: > >> Alexander Panek wrote: >> >>> In article <ds68nk$1rvm$1@digitaldaemon.com>, Alexander Panek says... >>> >>>> In article <ds66j6$1q9q$1@digitaldaemon.com>, Alexander Panek says... >>>> >>>>> In article <ds61j7$1mv5$1@digitaldaemon.com>, alexander.panek@brainsware.org >>>>> says... >>>>> >>>>>> Hello guys (and girls, perhaps), >>>>>> >>>>>> I've written a little bash script to ease the 'pain' (or for that matter shorten >>>>>> the time needed for) of an installation of DMD under Linux. Just unpack the >>>>>> dmd.zip and put the install.sh into the same directory, run it as root, and be >>>>>> happy. :) >>>>>> >>>>>> Usage: >>>>>> /install.sh <prefix> >>>>>> >>>>>> .where <prefix> is something like /usr, /usr/local or where ever you want >>>>>> phobos' sources and dmd to be living. >>>>>> >>>>>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install.sh >>>>>> >>>>>> >>>>>> There's also a PKGBUILD available, written by a friend of mine: >>>>>> >>>>>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/PKGBUILD >>>>>> >>>>>> Maybe it helps someone.., >>>>>> Alex >>>>>> >>>>>> >>>>> >>>>> Added a few lines to give the possibility to download dmd.zip via install.sh: >>>>> >>>>> Usage: >>>>> /install.sh <prefix> [-d] >>>>> >>>>> <prefix> -> as usual >>>>> -d -> Download dmd.zip from http://ftp.digitalmars.com/dmd.zip (DMDZIP_URL) >>>>> >>>>> Alex >>>>> >>>>> >>>> >>>> >>>> Yet another update: >>>> >>>> I've added some nice output and a cleaning up to the script. I renamed it also >>>> to install-d.sh. >>>> >>>> Here's the new link: >>>> >>>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh >>>> >>>> Alex >>>> >>>> >>> >>> >>> I hate newsgroups for not being able to edit posts.. or for that matter: for >>> having to think and read before posting. :P >>> >>> Here's a working link: >>> >>> https://80.108.15.143/svn/ocb/trunks/tools/dmd/install-d.sh >>> >>> Alex >>> >>> >> >> I have to be root? >> I'm not the root on my university's linux boxes, is there a workaround? > > > There's a no-root option available ( --noroot ) for purposes like this. I'd be glad for any further improvement ideas, if you have some. > > Regards, Alex Doesn't seem to work with me. Infact there's no reference to "--noroot" inside the script file as far as I can tell. ssh log: -------------------------------------------------- [abdurahh@csc ~]$ sh install-d.sh ~/d --noroot Creating /home/ugb/abdurahh/d/{bin,lib,include} if not present Copying executables to /home/ugb/abdurahh/d/bin Copying libphobos.a to /home/ugb/abdurahh/d/lib Copying Phobos' source to /home/ugb/abdurahh/d/include Creating a specific dmd.conf with given prefix (/home/ugb/abdurahh/d) install-d.sh: line 75: /etc/dmd.conf: No such file or directory Could not create dmd.conf in /etc. You should perform this task as root. Aborting installation. |
Copyright © 1999-2021 by the D Language Foundation