Amber: Bug: ubuntu 18.04 amber intstallation

Created on 21 May 2018  路  9Comments  路  Source: amberframework/amber

HI,

In ubuntu 18.04, amberframework fails to build with the openssl issue:

~/amber-stable# make install
Building amber in /root/amber-stable/bin/amber
_main.o: In function `__crystal_main':                
main_module:(.text+0xeb8): undefined reference to `SSL_library_init'
main_module:(.text+0xebd): undefined reference to `SSL_load_error_strings'
main_module:(.text+0xec2): undefined reference to `OPENSSL_add_all_algorithms_noconf'
main_module:(.text+0xec7): undefined reference to `ERR_load_crypto_strings'
O-penS-S-L-5858S-S-L-5858C-ontext.o: In function `*OpenSSL::SSL::Context::default_method:Pointer(Void)':
OpenSSL::SSL::Context:(.text+0x2): undefined reference to `SSLv23_method'
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/root/amber-stable/bin/amber'  -rdynamic  -lsqlite3 `command -v pkg-config > /dev/null && pkg-config --libs libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs libcrypto || printf %s '-lcrypto'` -lyaml -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
Makefile:17: recipe for target '/root/amber-stable/bin/amber' failed
make: *** [/root/amber-stable/bin/amber] Error 1

But builds fine in ubuntu 16.04.

bug cli help-wanted

All 9 comments

@docelic Are you using ubuntu 18.04, Did you have a similar issue?

@zenny I think amber guides are a bit outdated, so the dependencies may be changed, if you found a fix for this, please feel free to contribute with Guides/Installation

screenshot_20180521_073354

We have a nice Edit on Github button now :wink:

@faustinoaq never seen that issue myself.

@docelic Maybe we should update dependencies in amber guide, see: Installation for Debian & Ubuntu

@zenny @faustinoaq I had this same issue.

It was resolved following the advice of installing dependencies with apt buildep nginx . Some of these have the missing files required for compiling.

@Rojo Oh, nice :+1: , maybe we should update Installation guide or add a new section on Amber troubleshooting, WDYT?

@faustinoaq It would be nice to identify which of those packages are the required ones and add them to the guide, 'cause the build dependencies for nginx are a lot. But, since right now we only have this workaround, I think a troubleshooting note at the installation instructions, that points to this particular error, would do.

I have tried to install the nginx build-deps using ubuntu 18.04 and it doesn't worked for me.

OS: Ubuntu 18.04

Log

The same error can be found using the latest crystallang docker image.

@lcdss Yeah, see #826

I believe this has been addressed. If not, please re-open.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drujensen picture drujensen  路  6Comments

blankoworld picture blankoworld  路  7Comments

eliasjpr picture eliasjpr  路  6Comments

elorest picture elorest  路  6Comments

Meldanor picture Meldanor  路  4Comments