Error starting R: dydl: Library not loaded

Hi everyone, I'm quite new to all informatics related stuff but I'm excited to learn about it, particularly the bioinformatics field. I need a bit of help from you: I've been having trouble starting the latest version of RStudio in my computer. Every other version works, except for the very last one, and the package I need to use has some functions that I've been told only work in the latest version. This is the message that comes up:

R Session Startup Failure Report

RStudio Version

RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 1.

Error output:

dyld: Library not loaded: @executable_path/../Frameworks/libssl.1.1.dylib
  Referenced from: /Applications/RStudio 2.app/Contents/Resources/app/bin/rsession
  Reason: no suitable image found.  Did find:
	/Applications/RStudio 2.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: cannot load 'libssl.1.1.dylib' (load command 0x80000034 is unknown)
	/Applications/RStudio 2.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: stat() failed with errno=1
	/Applications/RStudio 2.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: cannot load 'libssl.1.1.dylib' (load command 0x80000034 is unknown)
	/Applications/RStudio 2.app/Contents/Resources/app/bin/../Frameworks/libssl.1.1.dylib: stat() failed with errno=1

Standard output:

[No output emitted]

Logs

/Users/Ana/.local/share/rstudio/log/rsession-Ana.log

10 Feb 2023 11:19:00 [rsession-Ana] ERROR system error 41 (Protocol wrong type for socket) [request-uri: /events/get_events]; OCCURRED AT virtual void rstudio::session::HttpConnectionImpl<rstudio_boost::asio::ip::tcp>::sendResponse(const core::http::Response &) [ProtocolType = rstudio_boost::asio::ip::tcp] src/cpp/session/http/SessionPosixHttpConnectionListener.cpp:113; LOGGED FROM: virtual void rstudio::session::HttpConnectionImpl<rstudio_boost::asio::ip::tcp>::sendResponse(const core::http::Response &) [ProtocolType = rstudio_boost::asio::ip::tcp] src/cpp/session/http/SessionPosixHttpConnectionListener.cpp:118

I googled this error and found a couple of solutions that just don't seem to work on my computer. I have a MacOS HighSierra 10.13.6 and R version 4.2.2 (2022-10-31) "Innocent and Trusting".

Thanks in advance!

I would try :

brew install openssl

(in your terminal , not R console)

You are on macOS 10.13; RStudio requires macOS 11. Update your macOS and let us know if that doesn't resolve the issue for you!

I probably looked right past it, but I cannot find a mention of macOS version requirements on the Posit site. It would be helpful to have the link when responding to people with problems.

It's on the download page, https://posit.co/download/rstudio-desktop/:

Thanks! I have been using daily builds, which have version numbers for all but macOS, for a long time and just did not see the 11+ for the release version. Will the daily builds get it too?

That's a great idea. Just added it. :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.