| Thread overview | ||||||||
|---|---|---|---|---|---|---|---|---|
|
March 14, 2008 Quote for the front page | ||||
|---|---|---|---|---|
| ||||
I just read the fantastic article about D at gamedev.net that was posted here a little while ago: http://www.gamedev.net/reference/programming/features/dmarsd/default.asp This quote at the end stood out to me: "D is what C has always wanted to become and what C++ should have been from the start." --Jonathan Breuer, gamedev.net I think that's good enough to be put on the D home page ;-) How about it, Walter? Nico | ||||
March 14, 2008 DMD Linux Question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nicolay Korslund | I have a shared linux hosting account, and I'd like to compile my cgi scripts with DMD on their server (they have 64 bit centos linux). Unfortunately they don't have the "/usr/lib/libstdc++.so.5" shared library available. Do you linux wizards know any way I can run dmd with the needed shared libraries in my user account directory? Maybe referencing the shared libraries "~/lib64/libstdc++.so.5" by adding the path to some environment variable or command line argument or something? I really appreciate your help, Justin | |||
March 14, 2008 Re: DMD Linux Question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Justin Greenwood | On Fri, Mar 14, 2008 at 01:51:38PM -0400, Justin Greenwood wrote: > Do you linux wizards know any way I can run dmd with the needed shared libraries in my user account directory? Maybe referencing the shared libraries "~/lib64/libstdc++.so.5" by adding the path to some environment variable or command line argument or something? Maybe: LD_LIBRARY_PATH=~/lib64/ ./dmd [args...] I'm not sure if that will work for this, but setting the LD_LIBRARY_PATH environment variable lets you add more paths to search for shared libs. > > I really appreciate your help, > Justin -- Adam D. Ruppe http://arsdnet.net | |||
March 14, 2008 Re: DMD Linux Question | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | Adam,
Thankyou so much. First, I typed "ldd dmd" and it listed the shared libraries needed (and the ones that were missing). After which I added the two lines below to my ".bash_profile":
LD_LIBRARY_PATH=$HOME/lib
EXPORT LD_LIBRARY_PATH
Of course I had to get the correct rpm, extract the .so files out of it, and then push them into the lib folder in my home/lib folder.
It's great to be able to use the compiler in a hosted environment. Now I can focus on the code again!
-Justin
Adam D. Ruppe wrote:
> On Fri, Mar 14, 2008 at 01:51:38PM -0400, Justin Greenwood wrote:
>> Do you linux wizards know any way I can run dmd with the needed shared libraries in my user account directory? Maybe referencing the shared libraries "~/lib64/libstdc++.so.5" by adding the path to some environment variable or command line argument or something?
>
> Maybe:
>
> LD_LIBRARY_PATH=~/lib64/ ./dmd [args...]
>
> I'm not sure if that will work for this, but setting the LD_LIBRARY_PATH
> environment variable lets you add more paths to search for shared libs.
>
>> I really appreciate your help,
>> Justin
>
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply