Configure Error Could Not Find Geos-config Within The Current Path
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this could not find xml2-config from libxml2 within the current path site About Us Learn more about Stack Overflow the company Business Learn more install geos ubuntu about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss amazon linux install psql Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Issues installing PostGIS postgis download up vote 11 down vote favorite 6 I'm trying to install PostGIS following these instructions: wget http://postgis.refractions.net/download/postgis-1.5.2.tar.gz tar zxvf postgis-1.5.2.tar.gz && cd postgis-1.5.2/ sudo ./configure && make && sudo checkinstall --pkgname postgis-1.5.2 --pkgversion 1.5.2-src --default but it doesn't pass the "sudo ./configure" command. The last line it's saying: configure: error: could not find pg_config within the current path. You may need to try re-running
Postgis Install
configure with a --with-pgconfig parameter. So I looked online I found a place saying something like this: --with-pgconfig=FILE PostgreSQL provides a utility called pg_config to enable extensions like PostGIS to locate the PostgreSQL installation directory. Use this parameter (--with-pgconfig=/path/to/pg_config) to manually specify a particular PostgreSQL installation that PostGIS will build against. I searched for pg_config using " whereis pg_config" but I could not find it. Is it referring to "/etc/postgresql/9.0/main/pg_hba.conf" file or a folder....? Am I missing something? I'm really confused at this point. I guess better real confusion than false clarity :). I'm using PostgreSQL 9 / Ubuntu 10.10. Any help would be greatly appreciated. postgresql ubuntu postgis ubuntu-10.10 share|improve this question edited Jan 7 '11 at 20:45 asked Jan 7 '11 at 20:09 avatar 3,055134073 add a comment| 4 Answers 4 active oldest votes up vote 22 down vote accepted You need to install geos. But the easiest way to install is from ubuntugis-unstable repository: sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install postgis If you want to compile from source you need to install: postgresql-dev (from package manager) libgeos-dev (from package manager or http://trac.osgeo.org/geos) proj4 (from package m
pgsql-announce pgsql-bugs pgsql-docs pgsql-general pgsql-interfaces pgsql-jobs pgsql-novice pgsql-performance pgsql-php pgsql-sql pgsql-students Developer lists Regional lists Associations User groups Project lists
--with-geosconfig Parameter
Inactive lists IRC Local User Groups Featured Users International Sites postgresql Propaganda Resources Weekly News Error during make when installing geos for postgis install...still trying From: Nick
not backwad compatible Reported by: robe Owned by: pramsey Priority: blocker Milestone: PostGIS 2.1.0 Component: build/upgrade/install Version: trunk Keywords: Cc: Description Just noticed Debbie can't build doxygen anymore after r11304 https://trac.osgeo.org/postgis/ticket/2275 error is: configure: error: could not find pg_config within the current path. You may need to try re-running configure with a --with-pg_config parameter. I put in a distclean http://superuser.com/questions/616914/postgresql-on-linux-ami and that didn't help. Doesn't seem to affect regress so maybe something needs changing in doxygen logic? Oldest first Newest first Threaded Comments only Change History (9) comment:1 could not Changed 3 years ago by robe oops sorry reference wrong changeset because they were mashed together. It's r11301 comment:2 Changed 3 years ago by robe Summary changed from doxygen building is broken to doxygen and html/pdf document building is broken To add also broke the doc building job. ​http://debbie.postgis.net:8080/job/PostGIS_2.1_docs/ checking for iconvctl... no checking for libiconvctl... no could not find checking for pg_config... no configure: error: could not find pg_config within the current path. You may need to try re-running configure with a --with-pg_config parameter. comment:3 Changed 3 years ago by strk Owner changed from strk to pramsey Was it --with-pgconfig before ? We don't want to break backward compatibility. But above that, we don't want underscores in configure switches... comment:4 Changed 3 years ago by robe comparing my configures. This is what the doc one looks like CPPFLAGS="-I${PGPATH}/include" \ LDFLAGS="-L${PGPATH}/lib" ./configure \ --with-pgconfig=${PGPATH}/bin/pg_config \ --with-geosconfig=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}/bin/geos-config \ --without-raster I just noticed somebody must have changed the tar one because I have this line I don't remember putting in the source tar and regress builds (perhaps dustymugs because I know the rest of you are too chicken to change anything :) ): if [ `expr "${POSTGIS_TAG}" : "trunk"` -gt 0 ]; then PGCONFIG="--with-pg_config=${PGPATH}/bin/pg_config" else PGCONFIG="--with-pgconfig=${PGPATH}/bin/pg_config" fi However the regress one looks like this: ./configure \ --with-pgconfig=${PROJECTS}/pg/rel/pg${PG_VER}w${OS_BUILD}/bin/pg_config \ --with-geosconfig=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}/bin/geos-config \ --with-gdalconfig=${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}/bin/gdal-config --without-topology The without-topology I had put in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Postgresql on linux ami up vote 0 down vote favorite I'm a newbie to aws and postgresql I've launch an instance with quick wizard of linux ami 2013.03.01 It says that the instance include a repository access to postgresql - I thought that means that it's already installed on the machine, and since i could not locate it I decided to install postgresql on my own following this great guide in step 10:PostGIS installation when executing this command ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --with-raster i get the following warnings: configure: WARNING: ImageMagick does not seem to be installed. Documentation cannot be built configure: WARNING: dblatex is not installed so PDF documentation cannot be built configure: WARNING: could not locate Docbook stylesheets required to build the documentation configure: WARNING: could not locate CUnit required for unit tests and the command ends with the following error: configure: error: could not find geos-config within the current path. You may need to try re-running configure with a --with-geosconfig parameter. i've tried this command ./configure --with-geosconfig=/usr/local/bin/geos-config I get the same warnings as above and the following error configure: error: could not find pg_config within the current path. You may need to try re-running configure with a --with-pgconfig parameter. can some one help me what am I missing? linux postgresql amazon-web-services share|improve this question as