February 14, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hasan Aljudy | 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.
>
I fixed a few 'bugs' now. It should work; The only thing is, that you 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
|
February 14, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to alexander.panek | Old link doesn't work anymore, here's the new one: https://svn.esotericsystems.at/ocb/trunk/tools/dmd/install-d.sh Regards, Alex |
February 14, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | 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." |
February 15, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | 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
|
February 15, 2006 Re: Installation script for DMD Linux version | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | 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
|
June 25, 2006 car insurance<a href='http://www.insurance-top.com' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hasan Aljudy | <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 . |
June 25, 2006 insurance auto<a href='http://www.insurance-top.com' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hasan Aljudy | 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 . |
June 25, 2006 insurance auto<a href='http://www.insurance-top.com' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hasan Aljudy | 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 . |
June 25, 2006 free ringtones<a href='http://www.ringtones-dir.com' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | <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 . |
June 25, 2006 ringtones free<a href='http://www.ringtones-dir.com' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | 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 . |
Copyright © 1999-2021 by the D Language Foundation