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

Internet routines cannot be loaded when load R Studio from Navigator #4421

Closed
Mikejs2178 opened this issue Aug 19, 2017 · 23 comments
Closed
Assignees

Comments

@Mikejs2178
Copy link

Using Anaconda Navigator 1.6.3, R Studio version 1.0.153 and R version 3.4.1.
MacBook Air Mac OS version 10.12.6

When launch R Studio with Navigator, I get the following error:
Error in tools::startDynamicHelp() : internet routines cannot be loaded
This R Studio was installed via conda with R Essentials
When I start an older version of R Studio outside of Anaconda Navigator (i.e. a Version of Rstudio I had before I installed the Anaconda version of R Studio) I do not get this problem

@mregensberg
Copy link

mregensberg commented Aug 22, 2017

+1

update: separately installed RStudio + R 3.4.1 works fine.

@slinnarsson
Copy link

slinnarsson commented Sep 4, 2017

I get a similar error on a clean install of Anaconda 4.4.0 after doing conda install rpy2. This is on Mac OS Sierra, and the R version I get is 3.4.1. Specifically, when trying to install a package, I get an error:

> source("http://bioconductor.org/biocLite.R")

Error in file(filename, "r", encoding = encoding) : 
  internet routines cannot be loaded
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
  unable to load shared object '/Users/sten/anaconda3/lib/R/modules//internet.so':
  dlopen(/Users/sten/anaconda3/lib/R/modules//internet.so, 6): Library not loaded: @rpath/libssh2.1.dylib
  Referenced from: /Users/sten/anaconda3/lib/R/modules//internet.so
  Reason: image not found

Note that @rpath has nothing to do with R, but is a mechanism for finding shared libraries on Mac OS X.

Checking under ~/anaconda3/lib indeed there is no libssh2.1.dylib. After doing

conda install libssh2

it still doesn't work, but now it wants to load another library (libgssapi_krb5.2.2.dylib) which we can get by installing krb5:

conda install krb5

...and this solves the problem! At least on my machine.

In short, it seems there are two dependencies missing from r-base.

@mingwandroid
Copy link

Thanks @slinnarsson, I need to get this fixed ASAP.

@Mikejs2178
Copy link
Author

Mikejs2178 commented Sep 4, 2017 via email

@mingwandroid
Copy link

This is open until I fix it properly.

@mingwandroid mingwandroid reopened this Sep 4, 2017
@lihp11
Copy link

lihp11 commented Sep 8, 2017

Thanks,it solved my problem!!!

@mattsears18
Copy link

thanks @slinnarsson, solved for me.

1 similar comment
@andreassandhi
Copy link

thanks @slinnarsson, solved for me.

@JLprogramming
Copy link

Thank you @slinnarsson! It solved the problem I've stuck for 2 days!

@StealthNameless
Copy link

Hello,

I have tried to fix the internet routines problem as well by copying conda install krb5 into R studio and trying to run it. I revieved the fallowing error messages

Error: unexpected symbol in "conda install"
Error: unexpected symbol in "conda install.packages"

I have macOS Sierra 10.12.4, Anaconda Navigator 1.6.2, and R Studio version 3.4.1

Ultimately I am trying to install caTools but I get the faloowing error message

caTools’ is not available (for R version 3.4.1)

All my packages are up to date.

@slinnarsson
Copy link

@StealthNameless you need to run the conda comman in your terminal, not inside R studio.

@jrumbut
Copy link

jrumbut commented Sep 19, 2017

@slinnarsson You are a hero.

@nickyongzhang
Copy link

@slinnarsson Thank you so much. You make my day.

@WallyFAI
Copy link

Awesome @slinnarsson, really saved me. Thank you!

@lambdamoses
Copy link

Thank you, @slinnarsson, it solved the problem

@zackkatz
Copy link

zackkatz commented Sep 27, 2017

Thank you @slinnarsson, your solution worked for me.

@doronator
Copy link

black magic, but it works!

@codykingham
Copy link

codykingham commented Oct 16, 2017

When running conda install libssh2, Conda wants to downgrade my Python package to 3.5.4 from 3.6. Which I don't want.

@mingwandroid
Copy link

mingwandroid commented Oct 16, 2017 via email

@codykingham
Copy link

@mingwandroid It works. You're the wind in my sails today. ⛵️

@mingwandroid
Copy link

This is fixed properly now. Make sure you are using the latest conda then conda update r-essentials rstudio.

@LilySnow
Copy link

LilySnow commented Mar 6, 2018

@slinnarsson Thanks! Solved for me!

@fengwei-li
Copy link

the above suggestions can not solve my problem.
however, I fix it through
cd ~/anaconda3/lib(your anaconda3 lib PATH)
rstudio

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