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
Ubuntu 16.04+ (WLS): bash: /usr/bin/rstudio: cannot execute binary file: Exec format error #3615
Comments
|
Sorry, but RStudio in WSL is not something we intend to support, and if it did work in the past that would've been just dumb luck. That said, RStudio works just fine in a regular Ubuntu installation so whatever is wrong here must be the glue between Windows and Linux. |
|
@kevinushey. I don't know why you would say it is dumb luck. I've installed it in WSL successfully multiple times over the last year. |
|
@abalter |
|
@abalter I believe Kevin means that it is purely by coincidence that RStudio worked in WSL in the past - we do not test RStudio in WSL and do we do not attempt to make the product work with it. We have also never done this in the past. |
|
@dorianps your are right! v1.2 doesn't work on WSL! Although, I'm going to give a try building from source. I guess I'll have to go back to v1.1. 'Cmon rstudio folks. Are you aware of how many people are running rstudio under WSL? |
|
@dorianps |
|
Thanks for letting me know. I've eliminated wsl since.
…On Tue, Jul 16, 2019, 8:24 AM Dongdong Kong ***@***.***> wrote:
@dorianps <https://github.com/dorianps> rstudio-server-1.2.1335-amd64.deb
works under WSL ubuntu 18.04
https://www.rstudio.com/products/rstudio/download-server/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3615?email_source=notifications&email_token=ACFJU7LN3NJGOJWXE7UF5D3P7W4XNA5CNFSM4FZOSHQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2AVSNI#issuecomment-511793461>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACFJU7OW27SQPD5XVUA67JDP7W4XNANCNFSM4FZOSHQQ>
.
|
|
@kongdd I'm running 18.10. But I'll try a full update and try again to see if it will build. |
|
/edit: I didn't see that it was the |
|
|
@kongdd you are right, I overlooked that |
|
Any hope? |
|
This warning happens in WSL 1. RStudio in WSL 2 works. I posted some instructions using Pengwin and X410: |
|
On Sun, Mar 22, 2020, 6:46 PM Steven Kalinke ***@***.***> wrote:
This warning happens in WSL 1. RStudio in WSL 2 works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFJU7MIEIVNFYN6NS5GMRTRI2IK3ANCNFSM4FZOSHQQ>
.
|
|
2004 (20H1) is actually done since December 2019, and MS is delivering updates since. No problems since January, and WSL 2 is really really fast. |
|
Supposedly release in April. We will see... |
|
I was referring to:
|
|
Steven, can you provide some more info on your steps/installation? I
switched to 20H1, went for WSL2 with Ubuntu 18.04, installed everything and
tried running rstudio. The window shows briefly and then crashes with this
error:
~$ rstudio
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-dp'
The X11 connection broke: I/O error (code 1)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "
172.27.64.1:0"
after 548 requests (548 known processed) with 0 events remaining.
P.s. xeyes works ok.
…On Mon, Mar 23, 2020 at 4:51 AM Steven Kalinke ***@***.***> wrote:
I was referring to:
Even though the RTM build for Windows 10 20H1, or version 2004, was
released back in December, it's still not going to ship until the spring.
Between when that build was released and when it ships to the public, there
will be several cumulative updates, with the idea that it when it's
generally available, it should be as stable as a feature update that's been
serviced for a few months.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFJU7J5YOTMVK7SEA6HTELRI4PK3ANCNFSM4FZOSHQQ>
.
|
|
Hey Dorian, I updated my gist here. I was also not able to run it using Ubuntu 18.04. In Pengwin you can install a package called GUILIB, as described in step 6, which seems to do the trick. I would suggest to analyze what selecting GUILIB is doing: In line 40 it triggers guilib.sh, which is here: Could you run the shell file, and see if that makes a change? |
|
I found the culprit in my case. I use MobaXterm. The trick was to disable
OpenGL acceleration completely. That did the trick in full and now I can
work and install things in Rstudio:
[image: image.png]
[image: image.png]
…On Mon, Mar 23, 2020 at 6:09 PM Steven Kalinke ***@***.***> wrote:
Hey Dorian,
I updated my gist here.
https://gist.github.com/Kalaschnik/177a30bd02c9438fee1a93686fe60735
I was also not able to run it using Ubuntu 18.04. In Pengwin you can
install a package called GUILIB, as described in step 6, which seems to do
the trick. I would suggest to analyze what selecting GUILIB is doing:
https://github.com/WhitewaterFoundry/pengwin-setup/blob/master/pengwin-setup.d/gui.sh
In line 40 it triggers guilib.sh, which is here:
https://github.com/WhitewaterFoundry/pengwin-setup/blob/613a415304a189a4f6ddd303fc7c738ec19ba703/pengwin-setup.d/guilib.sh
Could you run the shell file, and see if that makes a change?
What X server are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFJU7P2Z4AG3BV5E7GCCB3RI7M2ZANCNFSM4FZOSHQQ>
.
|
|
Hey @dorianps, could elaborate how you actually did that? I want to test the installation in Ubuntu. |
|
As I mentioned, I use MobaXterm, which comes with an Xserver.
https://mobaxterm.mobatek.net/
I made a couple of mistakes during the installation, like installing
Rstudio-server and installing a non-bionic package first. Then I manually
installed some libraries mid-way. I am pasting below the whole history of
my commands if that helps. The final issue is that the Xserver in MobaXterm
uses OpenGL acceleration by default. I don't know for what reason (my
computer or what else) but switching off that acceleration made Rstudio
open ok. Note, during all the time xeyes (the test gui app) worked ok, only
Rstudio was failing until I switched acceleration off.
I also ran yesterday a comparison with docker, and finally, WSL2 has
similar performance as a docker container, which is impressive.
https://github.com/dorianps/docker/wiki/Windows:-Docker-vs.-WSL-speed-test#update-2020-03-23
You also need to set MobaXterm X11 remote access to "full"
[image: image.png]
…---------------------------------------------
9 lsb_release -a
10 apt info r-base
11 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
E298A3A825C0D65DFD57CBB651716619E084DAB9
12 sudo add-apt-repository 'deb
https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
13 sudo apt update
14 apt how r-base
15 apt show r-base
16 sudo apt install r-base
17 R
18 sudo apt install r-base-dev
19 sudo apt-get install gdebi-core
20 wget
https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.5033-amd64.deb
21 sudo gdebi rstudio-server-1.2.5033-amd64.deb
22 wget
https://download1.rstudio.org/desktop/debian9/x86_64/rstudio-1.2.5033-amd64.deb
23 sudo apt-get remove rstudio-server
24 sudo gdebi rstudio-1.2.5033-amd64.deb
25 rstudio
26 sudo apt install libssl
27 sudo apt-get install libssl1.0.0 libssl-dev
28 rstudio
29 sudo apt install libcurl4-openssl-dev
30 rstudio
31 sudo apt install openssl1.0.2
32 sudo apt install libssl-dev
33 sudo apt install openssl-dev
34 sudo locate libcrypto.so
35 sudo apt install libcrypto
36 sudo apt install libcrypto1.0.2
37 sudo apt-get install libssl1.0.0 libssl-dev
38 sudo apt install libssl1.0-dev
39 sudo apt-get install libssl1.0.0 libssl-dev
40 sudo apt install libcrypto1.0.2
41 rstudio
42 sudo apt install libcurl4-openssl-dev
43 sudo apt install libxml2-dev
44 sudo apt-get install gdebi-core
45 rstudio
46 wget
http://security.debian.org/debian-security/pool/updates/main/o/openssl1.0/libssl1.0.2_1.0.2r-1~deb9u1_amd64.deb
47 sudo apt-get install libssl1.0.2
48 sudo apt remove rstudio
49 wget
https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5033-amd64.deb
50 ll
51 sudo gdebi rstudio-1.2.5033-amd64.deb
52 rstudio
53 rm rstudio-*
54 sudo apt remove rstudio
55 wget
https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5033-amd64.deb
56 sudo gdebi rstudio-1.2.5033-amd64.deb
57 rstudio
58 sudo apt install libnss3
59 rstudio
60 sudo apt install apt-file
61 sudo apt-file search libasound.so.2:
62 sudo apt-file search libasound.so.2
63 sudo apt update
64 sudo apt-file search libasound.so.2
65 rstudio
66 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/
67 rstudio
68 ll /usr/lib/x86_64-linux-gnu/libasound.so.2
69 sudo apt install libasound2
70 rstudio
71 sudo apt-file search libEGL.so.1
72 sudo apt install libegl1
73 rstudio
74 cat /etc/resolv.conf
75 xeyes
76 sudo apt install x11-apps
77 xeyes
78 exit
79 xeyes
80 exit
81 xeyes
82 exit
83 xeyes
84 rstudio
85 exit
86 rstudio
87 sudo apt install libegl1-mesa
88 rstudio
89 sudo apt update
90 sudo apt list --upgradable
91 sudo apt upgrade
92 rstudio
93 xeyes
94 exit
95 R
96 rstudio
97 ll /etc/x2go/
98 ll /etc/rstudio/
99 cd /etc/rstudio/
100 ll
101 cat rsession.conf
102 cat rserver.conf
103 ll themes/
104 cat themes/README.md
105 exit
106 r
107 lsb_release -a
108 xeyes
109 rstudio
110 exit
111 xeyes
112 exit
113 xeyes
114 rstudio
115 exit
116 xeyes
117 exit
118 xeyes
119 rstudio
120 xeyes
121 rstudio
122 exit
123 echo $DIPLSAY
124 echo $DISPLAY
125 export DISPLAY=192.168.0.80:0.0
126 xeyes
127 rstudio
On Tue, Mar 24, 2020 at 9:30 AM Steven Kalinke ***@***.***> wrote:
Hey @dorianps <https://github.com/dorianps>, could elaborate how you
actually did that? I want to test the installation in Ubuntu.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFJU7NOUISPCG3NV7QN7A3RJCYY5ANCNFSM4FZOSHQQ>
.
|
|
Thanks Dorian, I’ll dig through you log if I find some time. And thanks for the comparison! Performance of WSL 2 is game changing, indeed. However, if you operate in /mnt/ the performance might actually suck; see microsoft/WSL#4197 |
|
Thanks for the heads up. I didn't think of comparing docker and WSL with
external mounts, might be worth trying later.
Dorian
…On Tue, Mar 24, 2020 at 12:00 PM Steven Kalinke ***@***.***> wrote:
Thanks Dorian, I’ll dig through you log if I find some time. And thanks
for the comparison! Performance of WSL 2 is game changing, indeed. However,
if you operate in /mnt/ the performance might actually suck; see
microsoft/WSL#4197 <microsoft/WSL#4197>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFJU7I37EG43D27XYIY5WLRJDKJHANCNFSM4FZOSHQQ>
.
|
System details
Steps to reproduce the problem
Install Rstudio 1.2.1031 on Ubuntu 16+ in Windows Linux Subsystem.
Describe the problem in detail
Installing the new Rstudio v1.2 seems to work, but the executable does not work any more. I have tried installing older versions down to 1.2.1002, and also tried the Debian release. Same result.
I got the .deb installers from here: https://www.rstudio.com/products/rstudio/download/preview/
or here https://dailies.rstudio.com/rstudio/oss/xenial/x86_64/
Tried also checking the files for version 1.1.456 which works and the new 1.2 version:
Describe the behavior you expected
For it to run.
Failed diagnostic report:
The text was updated successfully, but these errors were encountered: