It is currently Wed Apr 26, 2017 10:51 am

All times are UTC [ DST ]




 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: Error while using command Make
PostPosted: Tue Jan 13, 2009 2:41 pm 

Joined: Tue Jan 13, 2009 2:24 pm
Posts: 1
Hi there,

i`ve got the next problem,

when i run make i get the folowing error:

pgsqlDB.cc:32:22: error: libpq-fe.h: No such file or directory
pgsqlDB.h:40: error: ISO C++ forbids declaration of 'PGconn' with no type
pgsqlDB.h:40: error: expected ';' before '*' token
pgsqlDB.h:41: error: ISO C++ forbids declaration of 'PGresult' with no type
pgsqlDB.h:41: error: expected ';' before '*' token
pgsqlDB.cc: In constructor 'gnuworld::pgsqlDB::pgsqlDB(const std::string&, short unsigned int, const std::string&, const std::string&, const std::string&)':
pgsqlDB.cc:54: error: class 'gnuworld::pgsqlDB' does not have any field named 'theDB'
pgsqlDB.cc:55: error: class 'gnuworld::pgsqlDB' does not have any field named 'lastResult'
pgsqlDB.cc:73: error: 'theDB' was not declared in this scope
pgsqlDB.cc:73: error: 'PQconnectdb' was not declared in this scope
pgsqlDB.cc: In constructor 'gnuworld::pgsqlDB::pgsqlDB(const std::string&)':
pgsqlDB.cc:93: error: 'theDB' was not declared in this scope
pgsqlDB.cc:93: error: 'PQconnectdb' was not declared in this scope
pgsqlDB.cc: In destructor 'virtual gnuworld::pgsqlDB::~pgsqlDB()':
pgsqlDB.cc:111: error: 'theDB' was not declared in this scope
pgsqlDB.cc:113: error: 'PQfinish' was not declared in this scope
pgsqlDB.cc:116: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:118: error: 'PQclear' was not declared in this scope
pgsqlDB.cc: In member function 'virtual bool gnuworld::pgsqlDB::Exec(const std::string&, bool)':
pgsqlDB.cc:127: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:129: error: 'PQclear' was not declared in this scope
pgsqlDB.cc:132: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:132: error: 'theDB' was not declared in this scope
pgsqlDB.cc:132: error: 'PQexec' was not declared in this scope
pgsqlDB.cc:134: error: 'ExecStatusType' was not declared in this scope
pgsqlDB.cc:134: error: expected `;' before 'status'
pgsqlDB.cc:139: error: 'PGRES_COPY_IN' was not declared in this scope
pgsqlDB.cc:139: error: 'status' was not declared in this scope
pgsqlDB.cc:140: error: 'PGRES_TUPLES_OK' was not declared in this scope
pgsqlDB.cc:140: error: 'status' was not declared in this scope
pgsqlDB.cc:141: error: 'PGRES_COMMAND_OK' was not declared in this scope
pgsqlDB.cc:141: error: 'status' was not declared in this scope
pgsqlDB.cc:147: error: 'PGRES_COPY_IN' was not declared in this scope
pgsqlDB.cc:147: error: 'status' was not declared in this scope
pgsqlDB.cc:148: error: 'PGRES_TUPLES_OK' was not declared in this scope
pgsqlDB.cc:148: error: 'status' was not declared in this scope
pgsqlDB.cc:149: error: 'PGRES_COMMAND_OK' was not declared in this scope
pgsqlDB.cc:149: error: 'status' was not declared in this scope
pgsqlDB.cc: In member function 'virtual bool gnuworld::pgsqlDB::StopCopyIn()':
pgsqlDB.cc:166: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:170: error: 'theDB' was not declared in this scope
pgsqlDB.cc:170: error: 'PQputCopyEnd' was not declared in this scope
pgsqlDB.cc: In member function 'virtual bool gnuworld::pgsqlDB::PutLine(const std::string&)':
pgsqlDB.cc:175: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:179: error: 'theDB' was not declared in this scope
pgsqlDB.cc:179: error: 'PQputline' was not declared in this scope
pgsqlDB.cc: In member function 'virtual unsigned int gnuworld::pgsqlDB::countTuples() const':
pgsqlDB.cc:184: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:188: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:188: error: 'PQntuples' was not declared in this scope
pgsqlDB.cc: In member function 'virtual const std::string gnuworld::pgsqlDB::ErrorMessage() const':
pgsqlDB.cc:193: error: 'theDB' was not declared in this scope
pgsqlDB.cc:193: error: 'PQerrorMessage' was not declared in this scope
pgsqlDB.cc: In member function 'virtual const std::string gnuworld::pgsqlDB::GetValue(unsigned int, unsigned int) const':
pgsqlDB.cc:199: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:203: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:203: error: 'PQgetvalue' was not declared in this scope
pgsqlDB.cc: In member function 'virtual const std::string gnuworld::pgsqlDB::GetValue(unsigned int, const std::string&) const':
pgsqlDB.cc:209: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:215: error: 'lastResult' was not declared in this scope
pgsqlDB.cc:215: error: 'PQfnumber' was not declared in this scope
pgsqlDB.cc:221: error: 'PQgetvalue' was not declared in this scope
pgsqlDB.cc: In member function 'virtual bool gnuworld::pgsqlDB::isConnected() const':
pgsqlDB.cc:226: error: 'CONNECTION_OK' was not declared in this scope
pgsqlDB.cc:226: error: 'theDB' was not declared in this scope
pgsqlDB.cc:226: error: 'PQstatus' was not declared in this scope
make[1]: *** [pgsqlDB.lo] Fout 1
make[1]: Map '/home/lidelf/gnuworld/db' wordt verlaten
make: *** [all-recursive] Fout 1

after i get it for the first time i reinstalled my Postgresql from the website and every possible module whitin it

after that stil got the same error,

i`ve use other configure command i`ve read in a older topic command: ./configure --with-pgsql-home=/opt/PostgreSQL/

stil got the same error

i`ve tryed on 2 different system`s a Linux Cent-OS 5.2 and a Linux Suse 10.3

both system`s same problem

hope somebody can help me

greetings lidelf


Offline
 Profile  
 
 Post subject: Re: Error while using command Make
PostPosted: Tue Jan 13, 2009 4:28 pm 

Joined: Tue Jan 13, 2009 4:23 pm
Posts: 2
After following the guide on the gnuworld.undernet.org website on installing postgresql, also install the latest postgresql/pgsql-devel version using apt-get or whatever function your OS has

Would like to mention this is not really a 'christian' way of doing it but gets the job done.


Offline
 Profile  
 
 Post subject: Re: Error while using command Make
PostPosted: Sun Apr 11, 2010 4:33 am 

Joined: Fri May 10, 2002 1:00 am
Posts: 435
Location: Netherlands
if that doesn't work:

locate libpq-fe.h


you should get a reply stating where libpq-fe.h is located in, maybe you need to sudo updatedb first.

then open db/pgsqlDB.cc and db/pgsqlDB.h, and change the #include "libpq-fe.h" to include the full path to it.



_________________
Don't bother reading, I'm just the lame botlender, right ?
Offline
 Profile  
 
 Post subject: Re: Error while using command Make
PostPosted: Mon Jul 12, 2010 10:17 am 
Undernet Webmasters

Joined: Wed Aug 29, 2007 12:00 am
Posts: 25
yum install libpqxx-devel.*


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: