Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install? #5

Closed
tozoj opened this issue Apr 8, 2019 · 5 comments
Closed

How to install? #5

tozoj opened this issue Apr 8, 2019 · 5 comments

Comments

@tozoj
Copy link

tozoj commented Apr 8, 2019

Hi, I'm having trouble installing this.
I'm on ubuntu 18.04 PostgreSQL 11.
After building odbc and clickhousedb_fdw, in psql when running:
create extension clickhousedb_fdw;
I get

ERROR:  could not load library "/usr/lib/postgresql/11/lib/clickhousedb_fdw.so": /usr/lib/postgresql/11/lib/clickhousedb_fdw.so: undefined symbol: odbc_fetch

@ibrarahmad
Copy link
Contributor

ibrarahmad commented Apr 8, 2019 via email

@tozoj
Copy link
Author

tozoj commented Apr 8, 2019

Thank you.
Is libclickhouse-1.0.so the file that results from building clickhouse-odbc ?

@ibrarahmad
Copy link
Contributor

ibrarahmad commented Apr 8, 2019 via email

@tozoj
Copy link
Author

tozoj commented Apr 8, 2019

Thank you for that.
I am still getting the same error.

Here is the built .so file.

ls -la -ltr /usr/lib/x86_64-linux-gnu/libclickhouse-1.0.so 
-rwxr-xr-x 1 root root 189520 Apr  8 10:50 /usr/lib/x86_64-linux-gnu/libclickhouse-1.0.so

And here is the postgres user's env

postgres@computer:~$ printenv
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/x86_64-linux-gnu
LANG=en_US.UTF-8
...

@tozoj
Copy link
Author

tozoj commented Apr 8, 2019

Never mind, I just had to clean and rebuild. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants