bitnine-oss / agensgraph

AgensGraph, a transactional graph database based on PostgreSQL
http://www.agensgraph.org
Other
1.33k stars 148 forks source link

Ubuntu 18.04 LTS. libssl.so.10 => not found, libcrypto.so.10 => not found #497

Open johnsks opened 4 years ago

johnsks commented 4 years ago

Hello,

I am trying to install AgensGraph on Ubuntu 18.04.

When run the command initdb -D /usr/local/AgensGraph/db_cluster

I get the following error: initdb: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory

libssl.so.10 and libcrypto.so.10 are deprecated libraries on Ubuntu 18.04.

I tried symlinking and does not help.

Even after compiling the code, I see the dependency is still on the libssl 1.0.

local:~/agensgraph-2.1.2/src/bin/initdb# ldd initdb linux-vdso.so.1 (0x00007fffbe5a2000) libpq.so.5 => /usr/local/AgensGraph/lib/libpq.so.5 (0x00007f4cecadc000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4cec8bd000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f4cec6b5000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4cec2c4000) libssl.so.10 => not found libcrypto.so.10 => not found

Anyone has luck in running Agensgraph on Ubuntu 18.04? Any help is appreciated.

erik-overdahl commented 4 years ago

did you set the environment variable ~LD_LIBRARY_PATH~ to the ~/usr/local/AgensGraph/lib~ directory?

running the ~/usr/local/AgensGraph/ag_env.sh~ script sets those environment variables appropriately too