Обсуждение: Installation of Postgis/postgresql
Trying to install postgis on LINUX machine, need to find the geos- config file, as seems it is no where to be found after download of postgis in the ./configure step, is there anyone that can give me a clue on how to find this file? Ultimate goal is to get postgis working so we can use geom data type in the tables on postgresql, and to get php to be able to talk to postgresql when scripts are run using pg_connect function. during ./configure of postGIS errors out looking for geos-config during ./configure of geos errors out looking for g++ to the best of my knowledge g++ is part of gcc and we have a current version of the gcc compiler on the computer Thanks, Nick
Nick, You'll find GEOS questions get answered better on the GEOS mailing list (http://lists.osgeo.org/mailman/listinfo/geos-devel), BUT: If ./configure is not finding g++ then odds are, you don't have it installed (type g++ on the commandline, see what happens). Use your package manager to do a search for "g++" or "c++" and find out which package hold it, then install it. Keep working on getting GEOS built and installed, you can't proceed with PostGIS until you get past that step. Also build and install Proj4 (http://trac.osgeo.org/proj) before proceeding with PostGIS. Best, Paul Also, your PostGIS questions will be better answered on http://postgis.refractions.net/mailman/listinfo/postgis-users On Mon, Dec 28, 2009 at 6:24 PM, Nick <nick.uebelhor@noaa.gov> wrote: > Trying to install postgis on LINUX machine, need to find the geos- > config file, as seems it is no where to be found after download of > postgis in the ./configure step, is there anyone that can give me a > clue on how to find this file? Ultimate goal is to get postgis working > so we can use geom data type in the tables on postgresql, and to get > php to be able to talk to postgresql when scripts are run using > pg_connect function. > > during ./configure of postGIS errors out looking for geos-config > > during ./configure of geos errors out looking for g++ > > to the best of my knowledge g++ is part of gcc and we have a current > version of the gcc compiler on the computer > > Thanks, > Nick > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general >
On 12/28/2009 08:24 PM, Nick wrote: > Trying to install postgis on LINUX machine, need to find the geos- > config file, as seems it is no where to be found after download of > postgis in the ./configure step, is there anyone that can give me a > clue on how to find this file? Ultimate goal is to get postgis working > so we can use geom data type in the tables on postgresql, and to get > php to be able to talk to postgresql when scripts are run using > pg_connect function. > > during ./configure of postGIS errors out looking for geos-config > > during ./configure of geos errors out looking for g++ > > to the best of my knowledge g++ is part of gcc and we have a current > version of the gcc compiler on the computer > > Thanks, > Nick if you type 'g++' and hit return, do you get the message: 'g++: no input files' What distro are you running? -Andy
On Mon, 2009-12-28 at 18:24 -0800, Nick wrote: > Trying to install postgis on LINUX machine, Which Linux? Many distros have PostGIS and related stuff in their repositories. You don't need to compile them. > need to find the geos-config file, as seems it is no where to be found > after download of postgis in the ./configure step, is there anyone > that can give me a clue on how to find this file? You need to *install* Geos first, before installing PostGIS. > during ./configure of geos errors out looking for g++ > > to the best of my knowledge g++ is part of gcc and we have a current > version of the gcc compiler on the computer c++ is a separate package, generally gcc-c++ or such. -- Devrim GÜNDÜZ, RHCE Command Prompt - http://www.CommandPrompt.com devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
Вложения
On Dec 28, 7:20 pm, a...@squeakycode.net (Andy Colson) wrote: > On 12/28/2009 08:24 PM, Nick wrote: > > > > > Trying to install postgis on LINUX machine, need to find the geos- > > config file, as seems it is no where to be found after download of > > postgis in the ./configure step, is there anyone that can give me a > > clue on how to find this file? Ultimate goal is to get postgis working > > so we can use geom data type in the tables on postgresql, and to get > > php to be able to talk to postgresql when scripts are run using > > pg_connect function. > > > during ./configure of postGIS errors out looking for geos-config > > > during ./configure of geos errors out looking for g++ > > > to the best of my knowledge g++ is part of gcc and we have a current > > version of the gcc compiler on the computer > > > Thanks, > > Nick > > if you type 'g++' and hit return, do you get the message: 'g++: no input files' > > What distro are you running? > > -Andy > > -- > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general 'g++' or g++ says -bash g++: command not found distro is red hat
Nick <nick.uebelhor@noaa.gov> writes: > 'g++' or g++ says -bash g++: command not found So you haven't got it installed. > distro is red hat "Red Hat" is pretty darn nonspecific, but on recent Fedora g++ is part of the gcc-c++ package. regards, tom lane
Nick wrote: > 'g++' or g++ says -bash g++: command not found > > distro is red hat > Assuming thats RHEL5, yum install gcc-c++ if its RHEL4 or earlier, use up2date instead. either of these will require a RHN subscription to be activated. if it is in fact, centos 3,4,5, yum install gcc-c++ and you don't need any subscription
Problem is we already have gcc-c++ but when we try to do a ./configure for the geos3.2.0 install it gives errors saying it is looking for g+ +, is it version of gcc-c++ is the highest upgrade and should have g++ included according to tech specialist. He is actually doing the install...trying to find more info so we can move on from install stage. Any more ideas appreciated...Thanks, Nick
Problem is we already have gcc-c++ but when we try to do a ./configure for the geos3.2.0 install it gives errors saying it is looking for g+ +, is it version of gcc-c++ is the highest upgrade and should have g++ included according to tech specialist. He is actually doing the install...trying to find more info so we can move on from install stage. Any more ideas appreciated...Thanks, Nick
Problem is we already have gcc-c++ but when we try to do a ./configure for the geos3.2.0 install it gives errors saying it is looking for g+ +, is it version of gcc-c++ is the highest upgrade and should have g++ included according to tech specialist. He is actually doing the install...trying to find more info so we can move on from install stage. Any more ideas appreciated...Thanks, Nick
On Dec 29, 1:21 pm, Nick <nick.uebel...@noaa.gov> wrote: > On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > > > > > Nick wrote: > > > 'g++' or g++ says -bash g++: command not found > > > > distro is red hat > > > Assuming thats RHEL5, > > > yum install gcc-c++ > > > if its RHEL4 or earlier, use up2date instead. either of these will > > require a RHN subscription to be activated. > > > if it is in fact, centos 3,4,5, > > > yum install gcc-c++ > > > and you don't need any subscription > > > -- > > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general > > More info...RHEL5 and postgis version is 1.4.0. thanks
On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > Nick wrote: > > 'g++' or g++ says -bash g++: command not found > > > distro is red hat > > Assuming thats RHEL5, > > yum install gcc-c++ > > if its RHEL4 or earlier, use up2date instead. either of these will > require a RHN subscription to be activated. > > if it is in fact, centos 3,4,5, > > yum install gcc-c++ > > and you don't need any subscription > > -- > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general More info...RHEL5 and postgis version is 1.4.0.
On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > Nick wrote: > > 'g++' or g++ says -bash g++: command not found > > > distro is red hat > > Assuming thats RHEL5, > > yum install gcc-c++ > > if its RHEL4 or earlier, use up2date instead. either of these will > require a RHN subscription to be activated. > > if it is in fact, centos 3,4,5, > > yum install gcc-c++ > > and you don't need any subscription > > -- > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general More info...RHEL5 and postgis version is 1.4.0.
On Dec 29, 1:21 pm, Nick <nick.uebel...@noaa.gov> wrote: > On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > > > > > Nick wrote: > > > 'g++' or g++ says -bash g++: command not found > > > > distro is red hat > > > Assuming thats RHEL5, > > > yum install gcc-c++ > > > if its RHEL4 or earlier, use up2date instead. either of these will > > require a RHN subscription to be activated. > > > if it is in fact, centos 3,4,5, > > > yum install gcc-c++ > > > and you don't need any subscription > > > -- > > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general > > More info...RHEL5 and postgis version is 1.4.0. thanks
On Tue, 2009-12-29 at 13:21 -0800, Nick wrote: > On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > > Nick wrote: > > > 'g++' or g++ says -bash g++: command not found > > > > > distro is red hat > > > > Assuming thats RHEL5, > > > > yum install gcc-c++ > > > > if its RHEL4 or earlier, use up2date instead. either of these will > > require a RHN subscription to be activated. > > > > if it is in fact, centos 3,4,5, > > > > yum install gcc-c++ > > > > and you don't need any subscription > > > > -- > > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general > > More info...RHEL5 and postgis version is 1.4.0. Why are you not using the yum repository that gives you all of this packaged? > -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564 Consulting, Training, Support, Custom Development, Engineering Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir.
On Dec 29, 4:19 pm, j...@commandprompt.com ("Joshua D. Drake") wrote: > On Tue, 2009-12-29 at 13:21 -0800, Nick wrote: > > On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > > > Nick wrote: > > > > 'g++' or g++ says -bash g++: command not found > > > > > distro is red hat > > > > Assuming thats RHEL5, > > > > yum install gcc-c++ > > > > if its RHEL4 or earlier, use up2date instead. either of these will > > > require a RHN subscription to be activated. > > > > if it is in fact, centos 3,4,5, > > > > yum install gcc-c++ > > > > and you don't need any subscription > > > > -- > > > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > > > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general > > > More info...RHEL5 and postgis version is 1.4.0. > > Why are you not using the yum repository that gives you all of this > packaged? > > > > -- > PostgreSQL.org Major Contributor > Command Prompt, Inc:http://www.commandprompt.com/- 503.667.4564 > Consulting, Training, Support, Custom Development, Engineering > Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir. > > -- > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general More info did a rpm -qa | grep gcc and gave me gcc-4.1.2-46el14.4.1 Thinking was that this included the g++, is that not the case? Or do we need a version gcc-c++? Thanks, hope you can help.
On Dec 29, 4:19 pm, j...@commandprompt.com ("Joshua D. Drake") wrote: > On Tue, 2009-12-29 at 13:21 -0800, Nick wrote: > > On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > > > Nick wrote: > > > > 'g++' or g++ says -bash g++: command not found > > > > > distro is red hat > > > > Assuming thats RHEL5, > > > > yum install gcc-c++ > > > > if its RHEL4 or earlier, use up2date instead. either of these will > > > require a RHN subscription to be activated. > > > > if it is in fact, centos 3,4,5, > > > > yum install gcc-c++ > > > > and you don't need any subscription > > > > -- > > > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > > > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general > > > More info...RHEL5 and postgis version is 1.4.0. > > Why are you not using the yum repository that gives you all of this > packaged? > > > > -- > PostgreSQL.org Major Contributor > Command Prompt, Inc:http://www.commandprompt.com/- 503.667.4564 > Consulting, Training, Support, Custom Development, Engineering > Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir. > > -- > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general More info did a rpm -qa | grep gcc and gave me gcc-4.1.2-46el14.4.1 Thinking was that this included the g++, is that not the case? Or do we need a version gcc-c++? Thanks, hope you can help.
On Dec 29, 4:19 pm, j...@commandprompt.com ("Joshua D. Drake") wrote: > On Tue, 2009-12-29 at 13:21 -0800, Nick wrote: > > On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > > > Nick wrote: > > > > 'g++' or g++ says -bash g++: command not found > > > > > distro is red hat > > > > Assuming thats RHEL5, > > > > yum install gcc-c++ > > > > if its RHEL4 or earlier, use up2date instead. either of these will > > > require a RHN subscription to be activated. > > > > if it is in fact, centos 3,4,5, > > > > yum install gcc-c++ > > > > and you don't need any subscription > > > > -- > > > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > > > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general > > > More info...RHEL5 and postgis version is 1.4.0. > > Why are you not using the yum repository that gives you all of this > packaged? > > > > -- > PostgreSQL.org Major Contributor > Command Prompt, Inc:http://www.commandprompt.com/- 503.667.4564 > Consulting, Training, Support, Custom Development, Engineering > Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir. > > -- > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general More info did a rpm -qa | grep gcc and gave me gcc-4.1.2-46el14.4.1 Thinking was that this included the g++, is that not the case? Or do we need a version gcc-c++? Thanks, hope you can help.
On Tue, 2009-12-29 at 13:21 -0800, Nick wrote: > On Dec 28, 8:22 pm, pie...@hogranch.com (John R Pierce) wrote: > > Nick wrote: > > > 'g++' or g++ says -bash g++: command not found > > > > > distro is red hat > > > > Assuming thats RHEL5, > > > > yum install gcc-c++ > > > > if its RHEL4 or earlier, use up2date instead. either of these will > > require a RHN subscription to be activated. > > > > if it is in fact, centos 3,4,5, > > > > yum install gcc-c++ > > > > and you don't need any subscription > > > > -- > > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general > > More info...RHEL5 and postgis version is 1.4.0. Why are you not using the yum repository that gives you all of this packaged? > -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564 Consulting, Training, Support, Custom Development, Engineering Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir.
On Tue, 2009-12-29 at 17:22 -0800, Nick wrote: > > More info did a > > rpm -qa | grep gcc > > and gave me > > gcc-4.1.2-46el14.4.1 > > Thinking was that this included the g++, is that not the case? Or do > we need a version gcc-c++? Did you read the previous e-mails? I remember at least 2 responses who told you to install gcc-c++ package using yum. yum -y install gcc-c++ Also, as Joshua wrote, if you were using PostgreSQL RPM repository, you would be able to install all components in a few minutes, without compiling things: http://yum.pgsqlrpms.org/howtoyum.php Regards, -- Devrim GÜNDÜZ, RHCE Command Prompt - http://www.CommandPrompt.com devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz