Skip to content
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

install script fails on Ubuntu #21

Closed
david-jankoski opened this issue Jul 31, 2017 · 6 comments
Closed

install script fails on Ubuntu #21

david-jankoski opened this issue Jul 31, 2017 · 6 comments

Comments

@david-jankoski
Copy link

david-jankoski commented Jul 31, 2017

Not sure if i'm doing something wrong or missing something but wanted to post you a note here that the install script fails on ubuntu 17.04 right after it's done installing processx and starts with notifier it halts with

...
...
* DONE (processx)
Skipping 1 packages ahead of CRAN: processx
Installing package into ‘/home/david-vogelstruis/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
* installing *source* package ‘notifier’ ...
** libs
gcc -std=gnu99 -g -O2 -fdebug-prefix-map=/build/r-base-X2xP8j/r-base-3.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  main.m AppDelegate.m -o macnotifier \
      -framework AppKit -framework ScriptingBridge
gcc: error: AppKit: No such file or directory
gcc: error: ScriptingBridge: No such file or directory
gcc: error: unrecognized command line option ‘-framework’
gcc: error: unrecognized command line option ‘-framework’
Makevars:9: recipe for target 'macnotifier' failed
make: *** [macnotifier] Error 1
ERROR: compilation failed for package ‘notifier’
* removing ‘/home/david-vogelstruis/R/x86_64-pc-linux-gnu-library/3.4/notifier’
Warning message:
In utils::install.packages(...) :
  installation of package ‘/tmp/RtmpowbjZZ/remotes25c479538766/gaborcsardi-notifier-2caaa92’ had non-zero exit status  

> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 17.04

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.7.0
LAPACK: /usr/lib/lapack/liblapack.so.3.7.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=nl_NL.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=nl_NL.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=nl_NL.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.4.1 tools_3.4.1   

I googled around for AppKit and ScriptingBrigde and from what i find it seems like they are mac-specific tools?

thanks for all your great work!
david

@gaborcsardi
Copy link
Owner

Your system is detected as macOS, I am not sure why.

@david-jankoski
Copy link
Author

I just double checked on a win10 machine - same results unfortunately

> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Dutch_Netherlands.1252  LC_CTYPE=Dutch_Netherlands.1252    LC_MONETARY=Dutch_Netherlands.1252
[4] LC_NUMERIC=C                       LC_TIME=Dutch_Netherlands.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RevoUtilsMath_10.0.0

loaded via a namespace (and not attached):
[1] compiler_3.4.0   RevoUtils_10.0.4 tools_3.4.0     

> devtools::install_github("gaborcsardi/notifier")
Downloading GitHub repo gaborcsardi/notifier@master
from URL https://api.github.com/repos/gaborcsardi/notifier/zipball/master
Installing notifier
"C:/PROGRA~1/MICROS~1/MRO-34~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/David_Jankoski/AppData/Local/Temp/Rtmp0y2EBS/devtools199c3f2240d5/gaborcsardi-notifier-2caaa92"  \
  --library="C:/Users/David_Jankoski/Documents/R/win-library/3.4" --install-tests 

* installing *source* package 'notifier' ...
** libs
C:/RBuildTools/3.4/mingw_64/bin/gcc -m64 -O2 -Wall  -std=gnu99 -mtune=core2 main.m AppDelegate.m -o macnotifier \
      -framework AppKit -framework ScriptingBridge
gcc.exe: error: AppKit: No such file or directory
gcc.exe: error: ScriptingBridge: No such file or directory
gcc.exe: error: unrecognized command line option '-framework'
gcc.exe: error: unrecognized command line option '-framework'
make: *** [macnotifier] Error 1
Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/MICROS~1/MRO-34~1.0/etc/x64/Makeconf" -f "C:/PROGRA~1/MICROS~1/MRO-34~1.0/share/make/winshlib.mk" SHLIB="notifier.dll" SHLIB_LIBADD='$(OBJC_LIBS)' WIN=64 TCLBIN=64 ' had status 2
ERROR: compilation failed for package 'notifier'
* removing 'C:/Users/David_Jankoski/Documents/R/win-library/3.4/notifier'
Installation failed: Command failed (1)

Let me know if (and how) i could provide some help to you.

thanks,
david

@gaborcsardi
Copy link
Owner

CAn you try installing the last CRAN version? https://cran.rstudio.com/src/contrib/Archive/notifier/

@david-jankoski
Copy link
Author

Yes, using devtools::install_version("notifier",version="1.0.0") it installed and works properly.
Thank you for your help!

@josswright
Copy link

Can I just note here that running the install script from a current Arch Linux system also causes it to be detected as a Mac, and fail. The command above does work, though. I don't think the issue should be closed!

@dendroica
Copy link

Same issue on Ubuntu 20.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants