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

Heroku deploy #14

Closed
werner opened this issue Aug 22, 2015 · 5 comments
Closed

Heroku deploy #14

werner opened this issue Aug 22, 2015 · 5 comments

Comments

@werner
Copy link
Contributor

werner commented Aug 22, 2015

Hi, I'm trying to deploy an app in heroku using crystal-pg, but I have the next errors:

remote: -----> Compiling main.cr
remote: /usr/bin/ld: /tmp/crystal/bin/../embedded/lib/../lib/libgc.a(os_dep.o): undefined reference to symbol '_end'
remote: //lib/x86_64-linux-gnu/libcom_err.so.2: error adding symbols: DSO missing from command line
remote: collect2: error: ld returned 1 exit status
remote: Error: execution of command failed with code: 1: `cc -o main "/tmp/build_9e3bf6082d648b8407cde8b368afff5c/.crystal/tmp/build_9e3bf6082d648b8407cde8b368afff5c/main.cr/main.o"   -lpq -I`pg_config --includedir` -L`pg_config --libdir` -lssl -levent -lrt -lpcl -lpcre -lm -lgc -lpthread -lunwind`

Do you have any idea how to solve it?. Thanks.

@will
Copy link
Owner

will commented Aug 23, 2015

Well this is embarrassing as I work on the postgres team at heroku.

It seems the same as #13 which is still unsolved. If it is the same, what's happening is the linking step isn't returning the correct thing for pg_config --libdir so when it goes to link libpq it fails.

@will
Copy link
Owner

will commented Aug 24, 2015

@fdr and I tracked this down more, crystal-lang/crystal#1269

@will
Copy link
Owner

will commented Aug 24, 2015

zamith/heroku-buildpack-crystal#2 might have fixed it, but we're stuck for a while due to crystal-lang/omnibus-crystal#2

@will
Copy link
Owner

will commented May 5, 2016

The driver is now native, so this problem is no longer relevant.

@will will closed this as completed May 5, 2016
@werner
Copy link
Contributor Author

werner commented May 5, 2016

Awesome, thanks.

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