Giter Club home page Giter Club logo

Comments (6)

virtualstaticvoid avatar virtualstaticvoid commented on May 24, 2024

Hi @tbondwilkinson

I've managed to replicate the issue, which seems to be related to LC_MESSAGES variable being undefined.

Git remote heroku added
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 1.95 KiB | 0 bytes/s, done.
Total 11 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Fetching custom git buildpack... done
remote: -----> Multipack app detected
remote: =====> Downloading Buildpack: https://github.com/virtualstaticvoid/heroku-buildpack-r.git
remote: =====> Detected Framework: R
remote:        Vendoring R 3.1.2 for cedar-14 stack (20150303-1649)
remote:        Downloading and unpacking R binaries (http://heroku-buildpack-r.s3.amazonaws.com/cedar-14/R-3.1.2-binaries-20150303-1649.tar.gz)
remote:        Executing init.r script
remote: also installing the dependencies ‘RColorBrewer’, ‘sfsmisc’
remote: 
remote: trying URL 'http://cran.revolutionanalytics.com/src/contrib/RColorBrewer_1.1-2.tar.gz'
remote: Content type 'application/octet-stream' length 11532 bytes (11 Kb)
remote: opened URL
remote: ==================================================
remote: downloaded 11 Kb
remote: 
remote: trying URL 'http://cran.revolutionanalytics.com/src/contrib/sfsmisc_1.0-27.tar.gz'
remote: Content type 'application/octet-stream' length 165630 bytes (161 Kb)
remote: opened URL
remote: ==================================================
remote: downloaded 161 Kb
remote: 
remote: trying URL 'http://cran.revolutionanalytics.com/src/contrib/expm_0.99-1.1.tar.gz'
remote: Content type 'application/octet-stream' length 128825 bytes (125 Kb)
remote: opened URL
remote: ==================================================
remote: downloaded 125 Kb
remote: 
remote: * installing *source* package ‘RColorBrewer’ ...
remote: ** package ‘RColorBrewer’ successfully unpacked and MD5 sums checked
remote: ** R
remote: ** inst
remote: ** preparing package for lazy loading
remote: ** help
remote: *** installing help indices
remote: ** building package indices
remote: ** testing if installed package can be loaded
remote: * DONE (RColorBrewer)
remote: * installing *source* package ‘sfsmisc’ ...
remote: ** package ‘sfsmisc’ successfully unpacked and MD5 sums checked
remote: ** R
remote: ** data
remote: ** demo
remote: ** inst
remote: ** preparing package for lazy loading
remote: ** help
remote: *** installing help indices
remote: ** building package indices
remote: ** testing if installed package can be loaded
remote: * DONE (sfsmisc)
remote: * installing *source* package ‘expm’ ...
remote: ** package ‘expm’ successfully unpacked and MD5 sums checked
remote: ** libs
remote: In file included from locale.h:4:0,
remote:                  from expm.h:10,
remote:                  from R_dgebal.c:4:
remote: R_dgebal.c: In function ‘ebal_type’:
remote: locale.h:5:19: error: ‘LC_MESSAGES’ undeclared (first use in this function)
remote:  #define _(String) dgettext ("expm", String)
remote:                    ^
remote: R_dgebal.c:11:8: note: in expansion of macro ‘_’
remote:   error(_("argument type='%s' must be a character string of string length 1"),
remote:         ^
remote: locale.h:5:19: note: each undeclared identifier is reported only once for each function it appears in
remote:  #define _(String) dgettext ("expm", String)
remote:                    ^
remote: R_dgebal.c:11:8: note: in expansion of macro ‘_’
remote:   error(_("argument type='%s' must be a character string of string length 1"),
remote:         ^
remote: R_dgebal.c: In function ‘R_dgebal’:
remote: locale.h:5:19: error: ‘LC_MESSAGES’ undeclared (first use in this function)
remote:  #define _(String) dgettext ("expm", String)
remote:                    ^
remote: R_dgebal.c:28:8: note: in expansion of macro ‘_’
remote:   error(_("invalid 'x': not a numeric (classical R) matrix"));
remote:         ^
remote: make: *** [R_dgebal.o] Error 1
remote: ERROR: compilation failed for package ‘expm’
remote: * removing ‘/app/vendor/R/lib/R/library/expm’
remote: Updating HTML index of packages in '.Library'
remote: Making 'packages.html' ... done
remote: Warning message:
remote: In install.packages(p, dependencies = TRUE) :
remote:   installation of package ‘expm’ had non-zero exit status
...

I'll do some digging to try figure it out. I know there have been several broken packages since the 3.1.2 release.

from heroku-buildpack-r.

virtualstaticvoid avatar virtualstaticvoid commented on May 24, 2024

Ok, it appears that it's failing to resolve for libintl.h. I'll try to sort this out.

from heroku-buildpack-r.

virtualstaticvoid avatar virtualstaticvoid commented on May 24, 2024

Fixed issue. @tbondwilkinson Please retry to confirm.

from heroku-buildpack-r.

tbondwilkinson avatar tbondwilkinson commented on May 24, 2024

Confirmed! Thank you for being so prompt!

from heroku-buildpack-r.

YanCCscu avatar YanCCscu commented on May 24, 2024

I have encountered the same problem. It was my environment variable C_INCLUDE_PATH that caused the error. The variable put a self-made include dir prior to the system include dirs.

from heroku-buildpack-r.

stevecondylios avatar stevecondylios commented on May 24, 2024

@virtualstaticvoid It appears someone may be having a related/similar problem using heroku-16 buildpack here

from heroku-buildpack-r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.