December 10, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Reimer schrieb am Thu, 09 Dec 2004 16:41:51 -0800: > > I prefer to install dmd to /opt/dmd, and then make symbolic links to the executables. > > ln -s /opt/dmd/bin/dmd /usr/local/bin/dmd > > the above can be done for each executable in dmd/bin. For libphobos.a, I do > > ln -s /opt/dmd/lib/libphobos.a /usr/lib/libphobos.a > > (technically, it's probably more correct to install libphobos.a > in /usr/local/lib). > > In both examples, everytime you update dmd, the links point to the most recent files installed. > > The same can be done with /etc/dmd.conf: > > ln -s /opt/dmd/bin/dmd.conf /etc/dmd.conf > > Here you have to realize that everytime you update dmd, you'll probably overwirte your /opt/dmd/bin/dmd.conf file. So you have to be careful not to do so. The only problem with your installation is the root/superuser requirement. The sweet part of my script is that anybody can install dmd. After updating the PATH you can start using DMD. In addition multiple versions of DMD and Phobos can be installed without any trouble. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.13 (GNU/Linux) iD8DBQFBuTAu3w+/yD4P9tIRAkY0AKDNQj0Bb3nzFumbGWW0Bm2yR5dloACfapWJ ggAlLJxlxPIHnPdEehiuLfg= =FMsi -----END PGP SIGNATURE----- |
December 10, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | In article <eqnn82-fb2.ln1@kuehne.cn>, Thomas Kuehne says...
>
>John Reimer schrieb am Thu, 09 Dec 2004 16:41:51 -0800:
>>
>> I prefer to install dmd to /opt/dmd, and then make symbolic links to the executables.
>
>The only problem with your installation is the root/superuser requirement.
>
>The sweet part of my script is that anybody can install dmd. After updating the PATH you can start using DMD.
It is very important that we do not show a preference for either method of installation.
It is the situation that (often) dictates which method to use.
Somebody who has an account has to use the non-root method, while a system administrator who wants D accessible to all users has to use the root-method.
Those who use D at their personal linux home computer may choose either, depending on their preferences, and what has become customary on that particular computer.
On the home computer, this issue might be comparable to the famous curly braces same/next line issue: purely a matter of taste.
Both methods should be well documented in the readme. Also I'd *really* want to see an install script that first checks whether you are root or not, and then installs accordingly. This would be a service to most first-time D installers. As with other programs, the savvy user may edit the script, or do a manual installation, it is his choice.
But a serious package should provide "hands-free" installation.
|
December 10, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Georg Wrede | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Georg Wrede schrieb am Fri, 10 Dec 2004 06:59:39 +0000 (UTC): > In article <eqnn82-fb2.ln1@kuehne.cn>, Thomas Kuehne says... >> >>John Reimer schrieb am Thu, 09 Dec 2004 16:41:51 -0800: >>> >>> I prefer to install dmd to /opt/dmd, and then make symbolic links to the executables. >> >>The only problem with your installation is the root/superuser requirement. >> >>The sweet part of my script is that anybody can install dmd. After updating the PATH you can start using DMD. > > It is very important that we do not show a preference for either method of installation. > > It is the situation that (often) dictates which method to use. > > Somebody who has an account has to use the non-root method, while a system administrator who wants D accessible to all users has to use the root-method. The only difference between a script installation as non-root or root is to either set a different path(non-root) or symlink and adapt access rights(root). Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFBuVEf3w+/yD4P9tIRAuVwAKC4ZDcuQJcQQ7APnVj2QTQ6+VfcQwCgv/iu O9PSouSdT96dtX1X1e7XYLM= =iWEl -----END PGP SIGNATURE----- |
December 10, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> John Reimer schrieb am Thu, 09 Dec 2004 16:41:51 -0800:
>
>>I prefer to install dmd to /opt/dmd, and then make symbolic links to the
>>executables.
>>
>>ln -s /opt/dmd/bin/dmd /usr/local/bin/dmd
>>
>>the above can be done for each executable in dmd/bin. For libphobos.a, I do
>>
>>ln -s /opt/dmd/lib/libphobos.a /usr/lib/libphobos.a
>>
>>(technically, it's probably more correct to install libphobos.a
>>in /usr/local/lib).
>>
>>In both examples, everytime you update dmd, the links point to the most
>>recent files installed.
>>
>>The same can be done with /etc/dmd.conf:
>>
>>ln -s /opt/dmd/bin/dmd.conf /etc/dmd.conf
>>
>>Here you have to realize that everytime you update dmd, you'll probably
>>overwirte your /opt/dmd/bin/dmd.conf file. So you have to be careful not
>>to do so.
>
>
> The only problem with your installation is the root/superuser
> requirement.
>
> The sweet part of my script is that anybody can install dmd. After
> updating the PATH you can start using DMD.
>
> In addition multiple versions of DMD and Phobos can be installed without
> any trouble.
>
> Thomas
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.9.13 (GNU/Linux)
>
> iD8DBQFBuTAu3w+/yD4P9tIRAkY0AKDNQj0Bb3nzFumbGWW0Bm2yR5dloACfapWJ
> ggAlLJxlxPIHnPdEehiuLfg=
> =FMsi
> -----END PGP SIGNATURE-----
Thomas,
It hadn't occurred to me that somebody would want to install dmd without root access. :-) I'm using a personal Linux system so I wasn't considering much else, I guess.
A question I do have: how do you go install dmd.conf in /etc without root access? Is that possible?
Georg is problaby right about a universal script being available. People shouldn't have to think too hard for themeselves on this one.
Yours is a good start. Maybe it can be extended to have a little more flexibility in installation.
Later,
John
|
December 10, 2004 Re: Newbie question | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Reimer schrieb am Thu, 09 Dec 2004 23:44:42 -0800: > Thomas Kuehne wrote: >> The only problem with your installation is the root/superuser requirement. > It hadn't occurred to me that somebody would want to install dmd without root access. :-) I'm using a personal Linux system so I wasn't considering much else, I guess. > > A question I do have: how do you go install dmd.conf in /etc without root access? Is that possible? 1) It's not possible to do anything in /etc without root's agreement. The root could symlink dmd.conf to a user place or create it and provide the user with write access for /etc/dmd.conf. 2) There is no need for a dmd.conf file ;) Have a look at this neat script from Norbert Nemec(slightly adapted): > #!/bin/sh > BINDIR=/opt/digitalmars/109/dmd/bin > TOPDIR=`dirname $BINDIR` > export DFLAGS="-I${TOPDIR}/src/phobos -L-L${TOPDIR}/lib" > exec ${BINDIR}/dmd.bin "$@" dmd.bin stands for the original dmd executable. 3) Even if you have root access it's desirable to use it as little as possible - you know, screwing up the system and that like... Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFBuY5Z3w+/yD4P9tIRAu/HAKDCN6jUJ9ctJkOn26qHYLL6TWkeBACgvVlu gBAqi7wc3+EJJnHGbYTE5Po= =P+wW -----END PGP SIGNATURE----- |
December 11, 2004 nice to meet you | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Hello! I like D language! I can't write English very well. (and also, my grade of English was D :-p) I want to report the situation and bug of D language of Japan. It is very well. Thank you Sakurai. |
Copyright © 1999-2021 by the D Language Foundation