June 01, 2013
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.

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
June 01, 2013
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