Comments (13)
In CentOS 5 I had to set these environment variables prior to compiling:
export LIBPQ_DIR=/usr/pgsql-9.3/
export LIBRARY_PATH=/usr/pgsql-9.3/lib
from rpostgres.
Ok thanks. This seems to solve the compilation issue!
from rpostgres.
Closing for now, please feel free to reopen.
from rpostgres.
I'm using SLES 11, and I get the same symptoms.
I'm somewhat surprised that clues from pkg-config
don't seem to be consulted.
> pkg-config libpq --cflags
-I/usr/include/pgsql
I don't see how to reopen this issue. I'm not sure I understand the github issue workflow.
from rpostgres.
Thanks. I'll try to replicate this in CentOS. Which version will match SLES 11? (Or is there an easy way to run virtual or dockerized SLES 11?)
from rpostgres.
I hope to get the SLES details to you shortly...
Meanwhile, my solution was to put this in my ~/.R/Makevars
:
PKG_CPPFLAGS=$(shell pkg-config libpq --cflags)
PKG_LIBS=$(shell pkg-config libpq --libs)
I expect you can use that to replace a lot of custom config stuff. I don't know if it'll work on OS X, but I'd expect it to work in just about all forms of linux.
from rpostgres.
Same issue on Amazon Linux.
PostgreSQL's header and library files are (by default) installed here:
/usr/include/pgsql/
/usr/lib64/pgsql/
... which are both just symlinks to the versioned installation directories.
I've patched my configure
file in a fork, and am submitting a pull request now...
from rpostgres.
@dckc: Thanks for the hint on pkg-config
. How portable/common is this? Would it be more robust to use pg_config
?
@mmuurr: Would you mind implementing a more generic solution in #73?
from rpostgres.
pkg-config
is everywhere, in my experience, though perhaps pg_config
is to be found wherever the postgres headers are found
googlecounts:
- pkg-config: About 540,000 results
- pg_config: About 48,800 results
https://en.wikipedia.org/wiki/Pkg-config
from rpostgres.
I've updated the Amazon Linux solution to use pg_config when pkg-config fails (and it thus handles other Linux distros in the more general case).
Since it was a large change, I've closed #73 and would suggest referencing this thread against #81.
from rpostgres.
Closing, because #81 is merged now. (Thanks @mmuurr!) Please open a new issue if problems persist.
from rpostgres.
I could solve the problem in my CentOS 7 only by setting the folder of pg_config in PATH.
export PATH=$PATH:/usr/pgsql-9.6/bin
from rpostgres.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
from rpostgres.
Related Issues (20)
- `dbWriteTable(temporary = TRUE, overwrite = TRUE)` deletes non-temporary table! HOT 1
- Printing of "invalid" `PqConnection` object HOT 1
- Connection to AWS DB with RPostgres on M1 Mac HOT 18
- binding parameters fails with input from dbQuoteLiteral HOT 2
- Connection closed unexpectedly by server HOT 9
- Encoding issue with identifiers passed via dbWriteTable or copy_to? HOT 4
- Cannot use DBI::dbWriteTable to save temporary table to Redshift HOT 2
- Failure to acquire connections on Mac OS within multicore fork()-ed process HOT 2
- Redshift varchar character length not respected by dplyr::rows_*() HOT 5
- collation warning on Ubuntu 22.04 HOT 4
- relicense RPostgres as MIT HOT 2
- using databases.pacha.dev for testing HOT 4
- Curious bug with transaction and `dbSendQuery()` HOT 6
- Redshift: dbWriteTable() with larger DFs and CSVs HOT 3
- Unable to create table with logical column HOT 4
- Schema with DBI::Id appears not to work with `dbListTables` HOT 4
- Bigints in dbQuoteLiteral HOT 4
- Polygon/multipolygon columns: incorrect write, correct read HOT 7
- Something wrong with the 1.4.5 Mac binary on CRAN with Redshift HOT 33
- How to deal with `pq__varchar` columns HOT 11
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 rpostgres.