digitalmars.D - Installation script for DMD Linux version
- alexander.panek brainsware.org Feb 05 2006
- clayasaurus <clayasaurus gmail.com> Feb 05 2006
- alexander.panek brainsware.org Feb 05 2006
- Alexander Panek <Alexander_member pathlink.com> Feb 05 2006
- Alexander Panek <Alexander_member pathlink.com> Feb 05 2006
- Alexander Panek <Alexander_member pathlink.com> Feb 05 2006
- Hasan Aljudy <hasan.aljudy gmail.com> Feb 12 2006
- Alexander Panek <alexander.panek brainsware.org> Feb 12 2006
- Hasan Aljudy <hasan.aljudy gmail.com> Feb 12 2006
- Alexander Panek <alexander.panek brainsware.org> Feb 13 2006
- Thomas Kuehne <thomas-dloop kuehne.cn> Feb 12 2006
- US <US_member pathlink.com> Jun 25 2006
- US <US_member pathlink.com> Jun 25 2006
- US <US_member pathlink.com> Jun 25 2006
- US <US_member pathlink.com> Jun 25 2006
- US <US_member pathlink.com> Jun 25 2006
- US <US_member pathlink.com> Jun 25 2006
- US <US_member pathlink.com> Jun 25 2006
- Alexander Panek <alexander.panek brainsware.org> Feb 13 2006
- Bruno Medeiros <daiphoenixNO SPAMlycos.com> Feb 14 2006
- Sean Kelly <sean f4.ca> Feb 15 2006
- Alexander Panek <alexander.panek brainsware.org> Feb 15 2006
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
Feb 05 2006
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
Feb 05 2006
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
Feb 05 2006
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
Feb 05 2006
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
Feb 05 2006
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
Feb 05 2006
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?
Feb 12 2006
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
Feb 12 2006
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.
Feb 12 2006
Hasan Aljudy wrote: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.
can't compile by "./<prefix>/bin/dmd stuff", because ld won't find libphobos. But I've got a workaround for this:./prefix/bin/dmd -c stuff gcc stuff.o -o stuff prefix/lib/libphobos.a -lpthread -lm
That worked on my server, logged in as normal user, install-d.sh executed with "--noroot" option. Regards, Alex
Feb 13 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- iD8DBQFD78Y93w+/yD4P9tIRAkJIAJoDEKk/xdMZU3HVTUFhO9fwATnemACfWcYA r16qzsiYH+kHsMJy53aqVg8= =U+px -----END PGP SIGNATURE-----
Feb 12 2006
<a href='http://www.yahoo.com'></a> http://www.insurance-top.com/auto/ <a href='http://www.insurance-top.com'>auto insurance</a>. <a href="http://www.insurance-top.com ">Insurance car</a>: compare car insurance, auto insurance, insurance car. [url]http://www.insurance-top.com/car/[/url] [link=http://www.insurance-top.com]insurance quote[/link] from site . <a href='http://www.yahoo.com'></a> http://www.insurance-top.com/auto/ <a href='http://www.insurance-top.com'>auto insurance</a>. <a href="http://www.insurance-top.com ">Insurance car</a>: compare car insurance, auto insurance, insurance car. [url]http://www.insurance-top.com/car/[/url] [link=http://www.insurance-top.com]insurance quote[/link] from site .
Jun 25 2006
http://www.insurance-top.com/company/ car site insurance. [URL=http://www.insurance-top.com]home insurance[/URL]: compare car insurance, auto insurance, insurance car. [url=http://www.insurance-top.com]cars insurance[/url] from website . http://www.insurance-top.com/company/ car site insurance. [URL=http://www.insurance-top.com]home insurance[/URL]: compare car insurance, auto insurance, insurance car. [url=http://www.insurance-top.com]cars insurance[/url] from website .
Jun 25 2006
http://www.insurance-top.com/company/ car site insurance. compare car insurance, auto insurance, insurance car. from website . http://www.insurance-top.com/company/ car site insurance. compare car insurance, auto insurance, insurance car. from website .
Jun 25 2006
<a href='http://www.yahoo.com'></a> http://www.ringtones-dir.com/download/ <a href='http://www.ringtones-dir.com'>download ringtones</a>. <a href="http://www.ringtones-dir.com ">nokia ringtones</a>: Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. [url]http://www.ringtones-dir.com/free/[/url] [link=http://www.ringtones-dir.com]ring tones[/link] From site . <a href='http://www.yahoo.com'></a> http://www.ringtones-dir.com/download/ <a href='http://www.ringtones-dir.com'>download ringtones</a>. <a href="http://www.ringtones-dir.com ">nokia ringtones</a>: Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. [url]http://www.ringtones-dir.com/free/[/url] [link=http://www.ringtones-dir.com]ring tones[/link] From site .
Jun 25 2006
http://www.ringtones-dir.com/get/ ringtones site free. [URL=http://www.ringtones-dir.com]ringtones download[/URL]: Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. [url=http://www.ringtones-dir.com]samsung ringtones[/url] From website . http://www.ringtones-dir.com/get/ ringtones site free. [URL=http://www.ringtones-dir.com]ringtones download[/URL]: Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. [url=http://www.ringtones-dir.com]samsung ringtones[/url] From website .
Jun 25 2006
http://www.ringtones-dir.com/get/ ringtones site free. Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. From website . http://www.ringtones-dir.com/get/ ringtones site free. Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. From website .
Jun 25 2006
Old link doesn't work anymore, here's the new one: https://svn.esotericsystems.at/ocb/trunk/tools/dmd/install-d.sh Regards, Alex
Feb 13 2006
Alexander Panek wrote:Old link doesn't work anymore, here's the new one: https://svn.esotericsystems.at/ocb/trunk/tools/dmd/install-d.sh Regards, Alex
The lines that have: ` ... ` , such as: `echo "Extracting failed. Aborting installation."; exit 1` and others, are they correct? The ` operators, (what's the name of that character? backquote?) will cause the shell to run the command given by the output of the command given to ` `. So: `echo "Extracting failed. Aborting installation."; exit 1` will try to run the command "Extracting" which of course doesn't make sense. -- Bruno Medeiros - CS/E student "Certain aspects of D are a pathway to many abilities some consider to be... unnatural."
Feb 14 2006
Alexander Panek wrote:Old link doesn't work anymore, here's the new one: https://svn.esotericsystems.at/ocb/trunk/tools/dmd/install-d.sh
Line 96 should be changed from: NOROOT=1 to: NOROOT=0 Otherwise, seems to work great :-) Sean
Feb 15 2006
Sean Kelly wrote:Alexander Panek wrote:Old link doesn't work anymore, here's the new one: https://svn.esotericsystems.at/ocb/trunk/tools/dmd/install-d.sh
Line 96 should be changed from: NOROOT=1 to: NOROOT=0 Otherwise, seems to work great :-) Sean
Oh..yea, heh. Changed, link stays the same. If you've got any other improvement suggestions feel free to post them. :) Alex
Feb 15 2006









alexander.panek brainsware.org 