-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation fails on FreeBSD #203
Comments
Thanks for reporting. Could you please try the |
It didn't work. > gh_install_packages("RSQLite",ref="b-%23203-freebsd")
Suggestion:
- rstats-db/RSQLite R interface for SQLite
Do you want to install the package (Y/n)? y
Installing "RSQLite" package from GitHub, but already installed from CRAN.
Are you sure the package is overwritten (Y/n)? y
Downloading GitHub repo rstats-db/RSQLite@b-%23203-freebsd
from URL https://api.github.com/repos/rstats-db/RSQLite/zipball/b-%23203-freebsd
Installing RSQLite
Downloading GitHub repo rstats-db/DBI@production
from URL https://api.github.com/repos/rstats-db/DBI/zipball/production
Installing DBI
'/usr/local/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore \
--quiet CMD INSTALL \
'/tmp/RtmpeWExnk/devtools12836498bcc4b/rstats-db-DBI-4d9571a' \
--library='/home/reed/R/amd64-portbld-freebsd10.3-library/3.3' \
--install-tests
* installing *source* package 'DBI' ...
** R
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (DBI)
'/usr/local/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore \
--quiet CMD INSTALL \
'/tmp/RtmpeWExnk/devtools1283633ecd82c/rstats-db-RSQLite-b5971d3' \
--library='/home/reed/R/amd64-portbld-freebsd10.3-library/3.3' \
--install-tests
* installing *source* package 'RSQLite' ...
** libs
make: "/tmp/RtmpeWExnk/devtools1283633ecd82c/rstats-db-RSQLite-b5971d3/src/Makevars.local" line 4: Could not find
make: "/tmp/RtmpeWExnk/devtools1283633ecd82c/rstats-db-RSQLite-b5971d3/src/Makevars.local" line 4: Could not find
make: Fatal errors encountered -- cannot continue
make: stopped in /tmp/RtmpeWExnk/devtools1283633ecd82c/rstats-db-RSQLite-b5971d3/src
ERROR: compilation failed for package 'RSQLite'
* removing '/home/reed/R/amd64-portbld-freebsd10.3-library/3.3/RSQLite'
* restoring previous '/home/reed/R/amd64-portbld-freebsd10.3-library/3.3/RSQLite'
Error: Command failed (1) I suspect there is a portability issue with |
The |
It failed when I installed from CRAN. And I don't think I can test the patch via cran.
|
Nevermind. I figured out that I can just download the source from CRAN and manually apply your patch. Still doesn't work, because BSD make is trying to include a file that doesn't exist, and you rule to create it doesn't help. However, if you change |
I'll get rid of Makevars.local soon. |
- `dbWriteTable(append = TRUE)` raises an error if column names are not the same in the data and the existing table (#165). - Removed dummy `dbGetQuery()` method introduced for compatibility with some Bioconductor packages (#187). - The `variance()` and `stdev()` extension functions now return `NULL` for input of length 1 (#201). - Exclude SQLite3 source code from coverage computation again (#204). - `sqlData()` now returns quoted strings, like the default implementation in DBI (#207). - Restore compatibility with older compilers/libraries by using <boost/limits.hpp> (#206). - Remove `Makevars.local` logic, resolve installation issues with non-GNU Make (#203).
API changes ----------- - Updated embedded SQLite to 3.19.3. - 64-bit integers are returned as `integer64` vectors. The `bit64` package is imported to support this data type (#65). - The `row.names` argument to `dbFetch()`, `dbReadTable()`, `dbWriteTable()`, `sqliteBuildTableDefinition()`, and `sqlData()` now defaults to `FALSE`. The old default can be restored temporarily on a per-package basis by calling `pkgconfig::set_config("RSQLite::row.names.query" = NA)`. `NULL` is a valid value for the `row.names` argument, same as `FALSE` (#210). - The `name` argument to `dbBegin()`, `dbCommit()`, and `dbRollback()` is now declared after the ellipsis. Code that calls these methods with an unnamed second argument still works but receives a warning (#208). - The `select.cols` argument to `dbReadTable()` is deprecated, use `dbGetQuery()` with a `SELECT` query instead (#185). - The methods related to tables (`dbReadTable()`, `dbWriteTable()`, `dbExistsTable()`, and `dbRemoveTable()`) always treat the `name` argument as literal name, even if it contains backticks. This breaks the CRAN version (but not the GitHub version) of the sqldf package (#188). - `dbWriteTable(append = TRUE)` raises an error if column names are not the same in the data and the existing table (#165). - `dbFetch()` now errs for `n < -1`, and accepts `n == Inf`. - Removed dummy `dbGetQuery()` method introduced for compatibility with some Bioconductor packages (#187). - `sqlData()` now returns quoted strings, like the default implementation in DBI (#207). - `dbWriteTable()` returns invisibly. - Now returning objects of type `blob` for blobs (#189). - `dbGetRowsAffected()` now returns `NA` for a statement with placeholders, if `dbBind()` has not been called. - If a column contains incompatible values (e.g., numbers and strings), a warning is raised in `dbFetch()` (#161). - Failing to set `PRAGMA cache_size` or `PRAGMA synchronous` in `dbConnect()` now gives a clear warning (#197). - Improve warning message if named parameters are not used in `dbGetPreparedQuery()` or `dbSendPreparedQuery()` (#193). - SQLite collects additional histogram data during `ANALYZE`, which may lead to faster executions of queries (#124). Bug fixes --------- - Identifiers are now escaped with backticks, to avoid ambiguous handling of double quotes in the context of strings (#123). - Fix `dbBind()` behavior and tests. Attempting to bind to a query without parameters throws an error (#114). - Fix corner case when repeatedly fetching from columns that don't have an affinity. - The `variance()` and `stdev()` extension functions now return `NULL` for input of length 1 (#201). - Fix roundtrip of `raw` columns (#116). Documentation ------------- - Remove redundant documentation, link to `DBI` more prominently (#186). Internal -------- - Most DBItest tests now pass. Reduced number of skips shown for tests. - C++ code now compiles with strict compiler settings `-Wall -Wextra -pedantic -Wconversion`. - Restore compatibility with older compilers/libraries by using <boost/limits.hpp> (#206). - Use `boost/cstdint` instead of compound data type for 64-bit values (#198). - Remove `Makevars.local` logic, resolve installation issues with non-GNU Make (#203). - All methods of DBI are reexported. - Registering native functions, as required by R >= 3.4.0. - Use UTF-8 encoded file names as required by the SQLite API, to support non-ASCII file names (#211). - Calling `dbFetch(n = 0)` instead of `dbFetch(n = 1)` in `dbListFields()`. - Exclude SQLite3 source code from coverage computation again (#204).
- Improved tests for numerical precision (r-dbi#203, @harvey131).
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. |
Problem
Installation fails on FreeBSD because
src/Makevars
is not compatible with FreeBSD'smake
.Workaround
Force
R
to use GNU Make by starting it with the following command:Error Message
The text was updated successfully, but these errors were encountered: