Giter Club home page Giter Club logo

Comments (14)

rosetnt avatar rosetnt commented on July 19, 2024 5

my os is centos6.6, (Note that the parameter is '/usr/pgsql-9.3/lib/libpq.so ' instead of '/usr/pgsql-9.3/lib' ) :
cmake -DPOSTGRESQL_INCLUDE_DIR:PATH=/usr/pgsql-9.3/include -DPOSTGRESQL_LIBRARIES:PATH=/usr/pgsql-9.3/lib/libpq.so -H. -Bbuild

from osm2pgrouting.

sanak avatar sanak commented on July 19, 2024

Above issue seems to be same as #59 .
@aj07mm comment: #59 (comment)

I fixed it already, so I think that using develop branch will solve the problem.
My comment: #59 (comment)
My pull request: #61

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

The just used master and it didn't generate me the problem, but using develop it did.

from osm2pgrouting.

sanak avatar sanak commented on July 19, 2024

Oh, okay.
(Sorry for unchecking the following link.)
http://gis.stackexchange.com/questions/149426/error-while-installing-osm2pgrouting-ubuntu14-04

Then, my fix may be the issue's cause...
I will check it also on my Ubuntu VirtualBox environment.

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

in master

mapas@cvergara:~/osm2pgrouting/osm2pgrouting_repo/build$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

mapas@cvergara:~/osm2pgrouting/osm2pgrouting_repo/build$ make
Scanning dependencies of target osm2pgrouting
[  7%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/XMLParser.cpp.o
[ 14%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/OSMDocumentParserCallback.cpp.o
[ 21%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/Type.cpp.o
[ 28%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/osm2pgrouting.cpp.o
[ 35%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/Node.cpp.o
[ 42%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/Way.cpp.o
[ 50%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/Relation.cpp.o
[ 57%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/math_functions.cpp.o
[ 64%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/Class.cpp.o
[ 71%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/utils.cpp.o
[ 78%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/OSMDocument.cpp.o
[ 85%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/ConfigurationParserCallback.cpp.o
[ 92%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o
[100%] Building CXX object CMakeFiles/osm2pgrouting.dir/src/Configuration.cpp.o
Linking CXX executable osm2pgrouting
[100%] Built target osm2pgrouting
mapas@cvergara:~/osm2pgrouting/osm2pgrouting_repo/build$ sudo make install
[sudo] password for mapas: 
Sorry, try again.
[sudo] password for mapas: 
[100%] Built target osm2pgrouting
Install the project...
-- Install configuration: ""
-- Installing: /usr/share/bin/osm2pgrouting
-- Up-to-date: /usr/share/osm2pgrouting/COPYING
-- Installing: /usr/share/osm2pgrouting/Readme.md
-- Up-to-date: /usr/share/osm2pgrouting/mapconfig.xml
-- Up-to-date: /usr/share/osm2pgrouting/mapconfig_for_cars.xml

wierd things happen, I didnt get it now in develop.

from osm2pgrouting.

sanak avatar sanak commented on July 19, 2024

Okay, thanks for information.

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

But I here is part of my history:

mapas@cvergara:~/osm2pgrouting/osm2pgrouting_repo$         
-- Boost version: 1.55.0
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   program_options
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mapas/osm2pgrouting/osm2pgrouting_repo/build
Linking CXX executable osm2pgrouting
CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function `Export2DB::~Export2DB()':
Export2DB.cpp:(.text+0x31d): undefined reference to `PQfinish'
CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function `Export2DB::connect()':
Export2DB.cpp:(.text+0x386): undefined reference to `PQconnectdb'
Export2DB.cpp:(.text+0x39f): undefined reference to `PQstatus'
CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function `Export2DB::createTables()':

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

@sanak
Lets do something, @sarthak-0415 is working on osm2pgrouting, so I will make sure it works for linux first, and then we move to mac.

from osm2pgrouting.

sanak avatar sanak commented on July 19, 2024

@cvvergara
Hmm...
On my Ubuntu 14.04 VirtualBox environment, there was no error on both of master and develop branch. (The following is develop branch result.)
develop

By the way, I couldn't understand why vagvaf did the following.

I also have changed the #include "libpq-fe.h" to #include postgresql/libpq-fe.h" in the src/Export2DB.h.

In my understanding, above changing include path is not necessary.

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

Now that I think about it, and wnet carefully on my history I think vagvaf might be @sarthak-0415.

from osm2pgrouting.

sanak avatar sanak commented on July 19, 2024

Okay.

from osm2pgrouting.

dpsspatial avatar dpsspatial commented on July 19, 2024

I had this error as well, and posted the following response on GIS.SE:

I had this error on a Linux machine that did not have postgresql installed.

The solution was to simply install libpq-devvia the following command:

sudo apt-get install libpq-dev

The /user/include/postgresql/ directory and libpq-fe.h were created just fine, and when I did the make / make install, there were no issues.

Here's the thread I found the solution on: http://stackoverflow.com/questions/6040583/cant-find-the-libpq-fe-h-header-when-trying-to-install-pg-gem

from osm2pgrouting.

cvvergara avatar cvvergara commented on July 19, 2024

@sanak
Can you please verify and suggest so I can put a comment on the
dependencies installation page

from osm2pgrouting.

sanak avatar sanak commented on July 19, 2024

@cvvergara
Okay, I will check it again at this weekend.

from osm2pgrouting.

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.