Comments (14)
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.
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.
The just used master and it didn't generate me the problem, but using develop it did.
from osm2pgrouting.
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.
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.
Okay, thanks for information.
from osm2pgrouting.
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.
@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.
@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.)
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.
Now that I think about it, and wnet carefully on my history I think vagvaf might be @sarthak-0415.
from osm2pgrouting.
Okay.
from osm2pgrouting.
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-dev
via 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.
@sanak
Can you please verify and suggest so I can put a comment on the
dependencies installation page
from osm2pgrouting.
@cvvergara
Okay, I will check it again at this weekend.
from osm2pgrouting.
Related Issues (20)
- length, cost and reverese cost is not a valid distance HOT 6
- Table "ways" has "gid" as id HOT 2
- Migrate to GH Actions
- How is the column "cost" and similars calculated? HOT 5
- mapconfig_for_cars.xml -> "unclassified" has wrong priority HOT 7
- Issue with data import: fe_sendauth: no password supplied HOT 3
- osm2pgrouting does not compile with libpqxx v 7.1.1, 7.2.0. Compiles okay with 6.4.7 HOT 8
- Remove "priority" and "max-speed"
- New release? HOT 4
- 2.3.7 compile error HOT 5
- Change 'gid' column in 'ways' table to id' HOT 15
- Move branch master to "main"
- Release v2.3.8 HOT 1
- Some way are not imported in the ways table HOT 2
- Too many edges HOT 4
- Error opening /usr/share/osm2pgrouting/mapconfig.xml HOT 1
- Problem creating topology on pgrouting HOT 2
- unable to open / parse config file HOT 3
- osm_relations table does not get populated
- unclosed token at line 51376846 Failed to open / parse data file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm2pgrouting.