8000 Fails to Install odbc Pkg · Issue #25 · r-hub/r-minimal · GitHub
[go: up one dir, main page]

Skip to content

Fails to Install odbc Pkg #25

Closed
Closed

Description

@marcelo-g-simas

Trying to install the odbc database using the following line I get an error:

RUN installr -d -t unixodbc-dev odbc
 make libcctz.a CC="gcc" CXX="g++ -std=gnu++11" AR="ar" ARFLAGS=rv CXXPICFLAGS="-fpic")
 make[1]: Entering directory '/tmp/RtmpCFkHNG/R.INSTALLf644d5738/odbc/src/cctz'
 g++ -std=gnu++11  -Wall -Iinclude -std=c++11 -pthread  -O -fpic -MMD  -c -o time_zone_format.o src/time_zone_format.cc
 g++ -std=gnu++11  -Wall -Iinclude -std=c++11 -pthread  -O -fpic -MMD  -c -o time_zone_if.o src/time_zone_if.cc
 g++ -std=gnu++11  -Wall -Iinclude -std=c++11 -pthread  -O -fpic -MMD  -c -o time_zone_impl.o src/time_zone_impl.cc
 g++ -std=gnu++11  -Wall -Iinclude -std=c++11 -pthread  -O -fpic -MMD  -c -o time_zone_info.o src/time_zone_info.cc
 src/time_zone_info.cc: In function 'char* cctz::{anonymous}::errmsg(int, char*, size_t)':
 src/time_zone_info.cc:64:20: error: invalid conversion from 'int' to 'char*' [-fpermissive]
    return strerror_r(errnum, buf, buflen);
           ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
 make[1]: Leaving directory '/tmp/RtmpCFkHNG/R.INSTALLf644d5738/odbc/src/cctz'
 make[1]: *** [<builtin>: time_zone_info.o] Error 1
 make: *** [Makevars:16: cctz/libcctz.a] Error 2
 ERROR: compilation failed for package ‘odbc’
 * removing ‘/usr/local/lib/R/library/odbc’
 Error in i.p(...) : 
   (converted from warning) installation of package ‘odbc’ had non-zero exit status
 Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
 Execution halted
 Failed to install odbc

Activity

  1. gaborcsardi commented on Jul 23, 2020

    @gaborcsardi
    Collaborator

    Which container is this?

  2. marcelo-g-simas commented on Jul 23, 2020

    @marcelo-g-simas
    ContributorAuthor

    FROM rhub/r-minimal

  3. gaborcsardi commented on Oct 25, 2020

    @gaborcsardi
    Collaborator

    This should be fixed by r-dbi/odbc#400 if that will be merged. Until then you can install from my fork:

    installr -d -t unixodbc-dev gaborcsardi/odbc
    
  4. CorradoLanera commented on Jan 4, 2021

    @CorradoLanera
    RUN installr -d -t unixodbc-dev gaborcsardi/odbc
    

    throws me the following error:

    I have solved with

    RUN installr -d -t unixodbc-dev r-dbi/odbc
    
  5. marcelo-g-simas commented on Jan 4, 2021

    @marcelo-g-simas
    ContributorAuthor

    I'll try this out in the coming weeks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0