www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Problem in installing/using LDC

reply Shriramana Sharma <samjnaa gmail.com> writes:
Hello I run a Kubuntu Raring 64 bit system and have downloaded the LDC
0.10.0 binary tar.gz -- I am wondering how to actually install it. I
see the bin, etc, import &c directories -- where should I put them? I
don't want to put them under /usr/ to avoid "polluting" the
directories managed by APT. So I said tar xf
ldc2-0.10.0-linux-x86_64.tar.gz -C /opt and then symlinked ldc2 and
ldmd2 binaries to /usr/bin/.

However when trying to compile a simple D program I get:

ldmd2 01-namaste.d
/usr/bin/ld: fatal error: namaste: open: Is a directory
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1

Along with the binary tarball, please include installation
instructions so newbies like me can install and use it. Thank you.

--=20
Shriramana Sharma =E0=AE=B6=E0=AF=8D=E0=AE=B0=E0=AF=80=E0=AE=B0=E0=AE=AE=E0=
=AE=A3=E0=AE=B6=E0=AE=B0=E0=AF=8D=E0=AE=AE=E0=AE=BE =E0=A4=B6=E0=A5=8D=E0=
=A4=B0=E0=A5=80=E0=A4=B0=E0=A4=AE=E0=A4=A3=E0=A4=B6=E0=A4=B0=E0=A5=8D=E0=A4=
=AE=E0=A4=BE
Jun 01 2013
parent "Kai Nacke" <kai redstar.de> writes:
On Saturday, 1 June 2013 at 19:40:56 UTC, Shriramana Sharma wrote:
 Hello I run a Kubuntu Raring 64 bit system and have downloaded 
 the LDC
 0.10.0 binary tar.gz -- I am wondering how to actually install 
 it. I
 see the bin, etc, import &c directories -- where should I put 
 them? I
 don't want to put them under /usr/ to avoid "polluting" the
 directories managed by APT. So I said tar xf
 ldc2-0.10.0-linux-x86_64.tar.gz -C /opt and then symlinked ldc2 
 and
 ldmd2 binaries to /usr/bin/.

 However when trying to compile a simple D program I get:

 ldmd2 01-namaste.d
 /usr/bin/ld: fatal error: namaste: open: Is a directory
 collect2: error: ld returned 1 exit status
 Error: /usr/bin/gcc failed with status: 1

 Along with the binary tarball, please include installation
 instructions so newbies like me can install and use it. Thank 
 you.
Hi Shriramana! The way you installed ldc looks ok. I did the same (on Gentoo Linux) and it works fine. From the error message I wonder if something like this happens: - Your file is named 01-namaste.d - The file contains a module named namaste - You have a folder named namaste in the folder where you are compiling In this case ldc creates an object file 01-namaste.o but writes an executable called namaste (conflicting with the folder name). Regards Kai
Jun 01 2013