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

Ubuntu 16.04+ (WLS): bash: /usr/bin/rstudio: cannot execute binary file: Exec format error #3615

Closed
dorianps opened this issue Oct 7, 2018 · 24 comments

Comments

@dorianps
Copy link

@dorianps dorianps commented Oct 7, 2018

System details

RStudio Edition : Desktop
RStudio Version :  1.2.1031
OS Version      :  Ubuntu 16.04 or Ubuntu 18.04 (both Windows Linux Subsystem)
R Version       :  3.4.4

Steps to reproduce the problem

Install Rstudio 1.2.1031 on Ubuntu 16+ in Windows Linux Subsystem.

dp@CFIWKLMP04Y690A:~$ sudo gdebi rstudio-1.2.1031-amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done

RStudio
 RStudio is a set of integrated tools designed to help you be more productive with R. It include
s a console, syntax-highlighting editor that supports direct code execution, as well as tools fo
r plotting, history, and workspace management.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package rstudio.
(Reading database ... 155862 files and directories currently installed.)
Preparing to unpack rstudio-1.2.1031-amd64.deb ...
Unpacking rstudio (1.2.1031) ...
Setting up rstudio (1.2.1031) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
dp@CFIWKLMP04Y690A:~$ rstudio
bash: /usr/bin/rstudio: cannot execute binary file: Exec format error

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:

# v1.2
/usr/lib/rstudio/bin/rstudio: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynam
ically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=3253
88ce0621ee0b955a533095f06d933d795e7f, not stripped
# v1.1
/usr/lib/rstudio/bin/rstudio: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamica
lly linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=3e2059e
b8f364397da8f29cad3261df68575d44f, not stripped

Describe the behavior you expected

For it to run.

Failed diagnostic report:

dp@CFIWKLMP04Y690A:~$ rstudio --run-diagnostics
bash: /usr/bin/rstudio: cannot execute binary file: Exec format error
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Oct 8, 2018

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.

@abalter
Copy link

@abalter abalter commented May 6, 2019

@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.

@dorianps
Copy link
Author

@dorianps dorianps commented May 6, 2019

@abalter
I have used RSTudio 1.1 in WSL since the time WSL came out in Oct 2016. But they have changed a number of things in v1.2 which breaks that compatibility. The question is whether is worth for them to look into that and maybe find a solution. @kevinushey thinks is not worth, I think differently as a user knowing that the world is going towards easier cross-talk between OS-es. Yet, I recently gave up WSL completely and am using HYPER-V virtualized linux when needed.

@kfeinauer
Copy link
Contributor

@kfeinauer kfeinauer commented May 6, 2019

@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.

@abalter
Copy link

@abalter abalter commented May 6, 2019

@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?

@kongdd
Copy link

@kongdd kongdd commented Jul 16, 2019

@dorianps rstudio-server-1.2.1335-amd64.deb works under WSL ubuntu 18.04
https://www.rstudio.com/products/rstudio/download-server/

@dorianps
Copy link
Author

@dorianps dorianps commented Jul 16, 2019

@abalter
Copy link

@abalter abalter commented Jul 16, 2019

@kongdd I'm running 18.10. But I'll try a full update and try again to see if it will build.

@black-snow
Copy link

@black-snow black-snow commented Aug 4, 2019

rstudio-server-1.2.1335-amd64.deb does not work for me on Ubuntu 18.04 inside WSL 1 with xface4 and VcXsrv.
See: https://superuser.com/questions/1465891/run-rstudio-in-wsl-error-in-program-format?noredirect=1#comment2212395_1465891

/edit: I didn't see that it was the server version.

@kongdd
Copy link

@kongdd kongdd commented Aug 6, 2019

rstudio-server-1.2.1335-amd64.deb does not work for me on Ubuntu 18.04 inside WSL 1 with xface4 and VcXsrv.
See: https://superuser.com/questions/1465891/run-rstudio-in-wsl-error-in-program-format?noredirect=1#comment2212395_1465891

rstudio-server works, but not rstudio. In your question, it's rstudio.

@black-snow
Copy link

@black-snow black-snow commented Aug 8, 2019

@kongdd you are right, I overlooked that

@abalter
Copy link

@abalter abalter commented Aug 8, 2019

Any hope?

@kalaschnik
Copy link

@kalaschnik kalaschnik commented Mar 22, 2020

This warning happens in WSL 1. RStudio in WSL 2 works. I posted some instructions using Pengwin and X410:
https://gist.github.com/Kalaschnik/177a30bd02c9438fee1a93686fe60735

@dorianps
Copy link
Author

@dorianps dorianps commented Mar 22, 2020

@kalaschnik
Copy link

@kalaschnik kalaschnik commented Mar 22, 2020

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.

@abalter
Copy link

@abalter abalter commented Mar 22, 2020

Supposedly release in April. We will see...

@kalaschnik
Copy link

@kalaschnik kalaschnik commented Mar 23, 2020

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.

@dorianps
Copy link
Author

@dorianps dorianps commented Mar 23, 2020

@kalaschnik
Copy link

@kalaschnik kalaschnik commented Mar 23, 2020

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?

@dorianps
Copy link
Author

@dorianps dorianps commented Mar 23, 2020

@kalaschnik
Copy link

@kalaschnik kalaschnik commented Mar 24, 2020

Hey @dorianps, could elaborate how you actually did that? I want to test the installation in Ubuntu.

@dorianps
Copy link
Author

@dorianps dorianps commented Mar 24, 2020

@kalaschnik
Copy link

@kalaschnik kalaschnik commented Mar 24, 2020

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

@dorianps
Copy link
Author

@dorianps dorianps commented Mar 24, 2020

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

8 participants