RejectedSoftware Forums

Sign up

Help building vibe.d sample on CentOS 6

Hello,

I am trying to build the vibe.d default project (created with dub init . vibe.d) and after going over quite a few hurdles I am now stuck on an issue with openssl.
DMD version is 2.066.0.

Here is the output;

dub build -f -b release-nobounds
The following changes will be performed:
Fetch vibe-d >=0.7.21-alpha.4, userWide
Fetch libevent ~master, userWide
Fetch openssl ~master, userWide
Fetch libev ~master, userWide
Fetching vibe-d 0.7.21-beta.2...
Placing vibe-d 0.7.21-beta.2 to /home/centos/.dub/packages/...
Fetching libevent ~master...
Placing libevent ~master to /home/centos/.dub/packages/...
Fetching openssl ~master...
Placing openssl ~master to /home/centos/.dub/packages/...
Fetching libev ~master...
Placing libev ~master to /home/centos/.dub/packages/...
vibe-d: ["vibe-d", "libevent", "openssl"]
mq: ["mq", "vibe-d", "libevent", "openssl"]
Building vibe-d configuration "libevent", build type release-nobounds.
Running dmd...
Building mq configuration "application", build type release-nobounds.
Compiling...
Linking...
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
--- errorlevel 1
FAIL .dub/build/application-release-nobounds-linux.posix-x86_64-dmd-015D9E1C910BF21D2406ABC0C35E070A mq executable
Error executing command build: Link command failed with exit code 1

I have openssl installed via yum and I also downloaded the openssl latest source code, built it and installed it but still no luck.

Please help.

Re: Help building vibe.d sample on CentOS 6

Never mind, I was able to link my project.

On Thu, 11 Sep 2014 17:03:08 GMT, flamencofantasy wrote:

Hello,

I am trying to build the vibe.d default project (created with dub init . vibe.d) and after going over quite a few hurdles I am now stuck on an issue with openssl.
DMD version is 2.066.0.

Here is the output;

dub build -f -b release-nobounds
The following changes will be performed:
Fetch vibe-d >=0.7.21-alpha.4, userWide
Fetch libevent ~master, userWide
Fetch openssl ~master, userWide
Fetch libev ~master, userWide
Fetching vibe-d 0.7.21-beta.2...
Placing vibe-d 0.7.21-beta.2 to /home/centos/.dub/packages/...
Fetching libevent ~master...
Placing libevent ~master to /home/centos/.dub/packages/...
Fetching openssl ~master...
Placing openssl ~master to /home/centos/.dub/packages/...
Fetching libev ~master...
Placing libev ~master to /home/centos/.dub/packages/...
vibe-d: ["vibe-d", "libevent", "openssl"]
mq: ["mq", "vibe-d", "libevent", "openssl"]
Building vibe-d configuration "libevent", build type release-nobounds.
Running dmd...
Building mq configuration "application", build type release-nobounds.
Compiling...
Linking...
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
--- errorlevel 1
FAIL .dub/build/application-release-nobounds-linux.posix-x86_64-dmd-015D9E1C910BF21D2406ABC0C35E070A mq executable
Error executing command build: Link command failed with exit code 1

I have openssl installed via yum and I also downloaded the openssl latest source code, built it and installed it but still no luck.

Please help.

Re: Help building vibe.d sample on CentOS 6

What did you do to make it work in the end? I remember having similar
issues on Cent OS, but I'm unsure what was the cause back then.

Am 12.09.2014 00:06, schrieb flamencofantasy:

Never mind, I was able to link my project.

On Thu, 11 Sep 2014 17:03:08 GMT, flamencofantasy wrote:

Hello,

I am trying to build the vibe.d default project (created with dub init . vibe.d) and after going over quite a few hurdles I am now stuck on an issue with openssl.
DMD version is 2.066.0.

Here is the output;

dub build -f -b release-nobounds
The following changes will be performed:
Fetch vibe-d >=0.7.21-alpha.4, userWide
Fetch libevent ~master, userWide
Fetch openssl ~master, userWide
Fetch libev ~master, userWide
Fetching vibe-d 0.7.21-beta.2...
Placing vibe-d 0.7.21-beta.2 to /home/centos/.dub/packages/...
Fetching libevent ~master...
Placing libevent ~master to /home/centos/.dub/packages/...
Fetching openssl ~master...
Placing openssl ~master to /home/centos/.dub/packages/...
Fetching libev ~master...
Placing libev ~master to /home/centos/.dub/packages/...
vibe-d: ["vibe-d", "libevent", "openssl"]
mq: ["mq", "vibe-d", "libevent", "openssl"]
Building vibe-d configuration "libevent", build type release-nobounds.
Running dmd...
Building mq configuration "application", build type release-nobounds.
Compiling...
Linking...
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
--- errorlevel 1
FAIL .dub/build/application-release-nobounds-linux.posix-x86_64-dmd-015D9E1C910BF21D2406ABC0C35E070A mq executable
Error executing command build: Link command failed with exit code 1

I have openssl installed via yum and I also downloaded the openssl latest source code, built it and installed it but still no luck.

Please help.

Re: Help building vibe.d sample on CentOS 6

On 2014-09-12 1:29 AM, Sönke Ludwig wrote:> What did you do to make it work in the end? I remember having similar

issues on Cent OS, but I'm unsure what was the cause back then.

You would have to see if you have the libssl library in the filesystem first, and where it is: find / -name "libssl*"

If libssl.so isn't in /lib, /usr/lib, /lib64 or /usr/lib64, you might need to create a symlink or add it in the environment variable for the linker using $LD_LIBRARY_PATH environment variable: setenv LD_LIBRARY_PATH /usr/local/lib

If you found e.g. libssl.so.1.0.1e but not libssl.so, you'll need to create a symlink to the actual file from the expected filename: ln -s /usr/lib64/libssl.so.1.0.1e /usr/lib/libssl.so

To preserve environment variables, and avoid this from breaking at next reboot, you need to append the setenv command to .bashrc