Git Product home page Git Product logo

Comments (9)

will avatar will commented on May 22, 2024

Interesting. Do you know if it worked for you on crystal 0.7.3? 0.7.4 was just released today, so it could be a problem there.

from crystal-pg.

will avatar will commented on May 22, 2024

I re-enqueued the last travis build, it is running on 0.7.4 and it passed. So I don't think that there is a regression with the point release of crystal and this project.

I now think that maybe there are incompatible files left in the local .crystal cache directory by a previous version of crystal. Can you try deleting .crystal and trying again?

from crystal-pg.

gdotdesign avatar gdotdesign commented on May 22, 2024

Sure, I'll try it when I get home.

from crystal-pg.

gdotdesign avatar gdotdesign commented on May 22, 2024

I deleted the .crystal .deps and lib libraries and run the file again, same error.

I'm on Ubuntu 14.04 LTS it it helps, also this is the code I'm trying to run:

require "pg"

DB = PG.connect("postgres://postgres:postgres@localhost/some_db")
puts DB.version

from crystal-pg.

will avatar will commented on May 22, 2024

So on yours the linking is

-lpq -I`pg_config --includedir` -L`pg_config --libdir` -levent -lrt -lpcl -lpcre -lm -lgc -lpthread -lunwind`

on my os x it's

 -lpq -I`pg_config --includedir` -L`pg_config --libdir` -levent -lpcl -lpcre -lgc -lpthread

on @uhoh-itsmaciek 's ubuntu 15.04 he gets

-lpq -I`pg_config --includedir` -L`pg_config --libdir` -levent -lrt -lpcl -lpcre -lm -lgc -lpthread -lunwind

which is the same as yours, however on his machine it works.

I'm at a loss here. I looked up some things with that error, but I don't have much experience with linking problems like this :/

from crystal-pg.

gdotdesign avatar gdotdesign commented on May 22, 2024

No worries, I'll try tomorrow with a different computer, it's probably something local...

from crystal-pg.

gdotdesign avatar gdotdesign commented on May 22, 2024

It works on Ubuntu 14.10 64Bit, libpq5 9.4.4-0ubuntu0.14.10.

from crystal-pg.

will avatar will commented on May 22, 2024

I'm going to close this for now, but if you find out more details please share them. Thanks!

from crystal-pg.

will avatar will commented on May 22, 2024

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

It explains why when the libdir isn't /usr/lib things work

from crystal-pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.