Unable to see rstudio GUI after installation

Asked by Ravi

I have installed the Arduino IDE following instructions from http://www.pluggy.me.uk/arduino-ubuntu/
Everything worked smoothly - only when I double-click the Arduino executable, it asks me for a directory in which to save programs and then nothing happens - the IDE does not open at all...
Any help appreciated...

  Ravi

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu r-base Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

There is crucial information missing in the problem description.

1) What is the exact model and make of Arduino that you are using?

2) What is the exact version of Ubuntu that you are using?

3) What is the output of this Terminal command?

cat /etc/lsb-release; uname -a

Revision history for this message
Ravi (ravi-kulk) said :
#2

Thank you for the prompt response! Here are the answers to your questions -
some comments below that...

1) What is the exact model and make of Arduino that you are using?

Arduino Uno, 1.0.6

2) What is the exact version of Ubuntu that you are using?

Ubuntu 14.04.1 LTS, 64 bit

3) What is the output of this Terminal command?

cat /etc/lsb-release; uname -a

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
Linux Perseus 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

---------------------------------------------------

My comments:

1) I used the instructions from http://www.pluggy.me.uk/arduino-ubuntu/ to
install the Arduino IDE. They are for an older version of Ubuntu (10.10).
But those instructions use the Synaptics Package Manager, which seemed to
me to be easier to install jre, gcc-avr...

2) Actually, the installation went smoothly, only I cannot see the IDE - I
realized that this is a problem I seem to have with GUIs - I installed
RStudio (which is a GUI for the statistical software called R) - there too,
I had the same problem - the installation went smoothly, but the GUI
refuses to display...

3) Is this a problem with my having installed 32-bit versions (by mistake!)
of the siftware?

  Thanks!
    Ravi

On Sun, Dec 14, 2014 at 1:51 AM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/259030
>
> Status: Open => Needs information
>
> Mark Rijckenberg requested more information:
> There is crucial information missing in the problem description.
>
> 1) What is the exact model and make of Arduino that you are using?
>
> 2) What is the exact version of Ubuntu that you are using?
>
> 3) What is the output of this Terminal command?
>
> cat /etc/lsb-release; uname -a
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/259030
>
> You received this question notification because you asked the question.
>

Revision history for this message
Ravi (ravi-kulk) said :
#3

Thank you for the prompt response! Here are the answers to your questions -
some comments below that...

1) What is the exact model and make of Arduino that you are using?

Arduino Uno, 1.0.6

2) What is the exact version of Ubuntu that you are using?

Ubuntu 14.04.1 LTS, 64 bit

3) What is the output of this Terminal command?

cat /etc/lsb-release; uname -a

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
Linux Perseus 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

---------------------------------------------------

My comments:

1) I used the instructions from http://www.pluggy.me.uk/arduino-ubuntu/ to
install the Arduino IDE. They are for an older version of Ubuntu (10.10).
But those instructions use the Synaptics Package Manager, which seemed to
me to be easier to install jre, gcc-avr...

2) Actually, the installation went smoothly, only I cannot see the IDE - I
realized that this is a problem I seem to have with GUIs - I installed
RStudio (which is a GUI for the statistical software called R) - there too,
I had the same problem - the installation went smoothly, but the GUI
refuses to display...

3) Is this a problem with my having installed 32-bit versions (by mistake!)
of the software?

  Thanks!
    Ravi

On Sun, Dec 14, 2014 at 1:51 AM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/259030
>
> Status: Open => Needs information
>
> Mark Rijckenberg requested more information:
> There is crucial information missing in the problem description.
>
> 1) What is the exact model and make of Arduino that you are using?
>
> 2) What is the exact version of Ubuntu that you are using?
>
> 3) What is the output of this Terminal command?
>
> cat /etc/lsb-release; uname -a
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/259030
>
> You received this question notification because you asked the question.
>

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

First try installing the newest version of R and RStudio using the following procedure:

 http://mark911.wordpress.com/2014/11/06/how-to-install-newest-version-of-r-and-rstudio-in-ubuntu-14-04-lts-using-a-bash-script/

Then retry launching both R and RStudio.

If you still cannot launch the RStudio GUI after upgrading R and RStudio, please send us the full output of these Terminal commands:

cd $HOME

/usr/lib/rstudio/bin/rstudio-backtrace.sh

cat rstudio-backtrace.txt

cat ~/.rstudio-desktop/log/rdesktop.log

echo

cat ~/.rstudio-desktop/log/cat rsession*.log

rstudio --run-diagnostics

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#5

Please also send us the output of this command:

cat ~/.rstudio-desktop/log/rsession*.log

There was a mistake in one of the previous commands.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Is there not a PPA you can use:
https://launchpad.net/ubuntu/+ppas?name_filter=Arduino

Make sure you filter for Trusty to see if one can be used there.....

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#7

@actionparsnip & ravi: I suggest focusing on the rstudio GUI issue in this thread.

@ravi: could you please copy the arduino problem description into a separate thread, which you can create at the following location?

https://answers.launchpad.net/ubuntu/+addquestion

I would like to keep rstudio and arduino in separate threads, to avoid confusion....

Revision history for this message
Ravi (ravi-kulk) said :
#8

The Arduino problem is fixed :)
I just installed Arduino from the Ubuntu Software Center and it worked
fine...
I only had a problem with seeing the board - I could only see the serial
port if I logged if I logged in as root - but I found a solution to that at
http://playground.arduino.cc/Linux/Ubuntu.
What I had to do was: sudo usermod -aG dialout <myuser>

And now the Arduino IDE launches without any problem and I am able to run
sketches...
Thanks - I can now concentrate on the RStudio problem... Thanks!

  Ravi

On Sun, Dec 14, 2014 at 4:36 PM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Mark Rijckenberg posted a new comment:
> @actionparsnip & ravi: I suggest focusing on the rstudio GUI issue in
> this thread.
>
> @ravi: could you please copy the arduino problem description into a
> separate thread, which you can create at the following location?
>
> https://answers.launchpad.net/ubuntu/+addquestion
>
>
> I would like to keep rstudio and arduino in separate threads, to avoid
> confusion....
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#9

Waiting for Terminal output of commands from post #4 and #5.

Revision history for this message
Ravi (ravi-kulk) said :
#10

Ok, I ran the script at mark911.wordpress.com...
After running it, R works fine form the command line, but RStudio still does not launch...
Here are the outputs of the commands I was asked to run:

--------------------------------------------------------------------
/usr/lib/rstudio/bin/rstudio-backtrace.sh
cat rstudio-backtrace.txt

RStudio Version: 0.98.1091

> print(sessionInfo())
R version 3.1.2 (2014-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN
 [4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN
 [7] LC_PAPER=en_IN LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C

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

/usr/bin/R
Linux Perseus 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

ravi@Perseus:~$ cat ~/.rstudio-desktop/log/rdesktop.log
cat: /home/ravi/.rstudio-desktop/log/rdesktop.log: No such file or directory
ravi@Perseus:~$ echo

ravi@Perseus:~$ cat ~/.rstudio-desktop/log/rsession*.log
cat: /home/ravi/.rstudio-desktop/log/rsession*.log: No such file or directory
ravi@Perseus:~$ rstudio --run-diagnostics
rstudio: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory

--------------------------------------------------------------------------
ravi@Perseus:~$ whereis rstudio
rstudio: /usr/bin/rstudio /usr/lib/rstudio /usr/bin/X11/rstudio

Hope that helps...

  Ravi

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#11

Your Terminal output shows this error message:

ravi@Perseus:~$ rstudio --run-diagnostics
rstudio: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory

So run these Terminal commands:

sudo apt-get update

sudo apt-get install libuuid1

Then send us the output of this command:

rstudio --run-diagnostics

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#12

Also run these commands:

sudo apt-get install libjpeg62

sudo apt-get install -f

Revision history for this message
Ravi (ravi-kulk) said :
#13

No, the problem is not solved:
...
...
The following packages will be upgraded:
  libuuid1
1 upgraded, 0 newly installed, 0 to remove and 282 not upgraded.
Need to get 10.9 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main libuuid1
amd64 2.20.1-5.1ubuntu20.3 [10.9 kB]
Fetched 10.9 kB in 0s (15.0 kB/s)
(Reading database ... 200552 files and directories currently installed.)
Preparing to unpack .../libuuid1_2.20.1-5.1ubuntu20.3_amd64.deb ...
Unpacking libuuid1:amd64 (2.20.1-5.1ubuntu20.3) over (2.20.1-5.1ubuntu20.1)
...
Setting up libuuid1:amd64 (2.20.1-5.1ubuntu20.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...

ravi@Perseus:~$ rstudio --run-diagnostics
rstudio: error while loading shared libraries: libuuid.so.1: cannot open
shared object file: No such file or directory
ravi@Perseus:~$
ravi@Perseus:~$
ravi@Perseus:~$ rstudio
rstudio: error while loading shared libraries: libuuid.so.1: cannot open
shared object file: No such file or directory

On Sun, Dec 14, 2014 at 7:56 PM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Mark Rijckenberg proposed the following answer:
> Also run these commands:
>
> sudo apt-get install libjpeg62
>
> sudo apt-get install -f
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030/+confirm?answer_id=11
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> You received this question notification because you asked the question.
>

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#14

Waiting for output from post #12....

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#15

What is the output of these Terminal commands?

ls -lart /lib/i386-linux-gnu/libuuid.so.1

ls -lart /lib/x86_64-linux-gnu/libuuid.so.1

sudo apt-get install libjpeg62

sudo apt-get install -f

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#16

And this one as well:

locate libuuid.so.1

Revision history for this message
Ravi (ravi-kulk) said :
#17

Answer to Q no. 12:

ravi@Perseus:~$ sudo apt-get install libjpeg62
[sudo] password for ravi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjpeg62 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 282 not upgraded.

ravi@Perseus:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 282 not upgraded.

On Sun, Dec 14, 2014 at 9:36 PM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Status: Open => Needs information
>
> Mark Rijckenberg requested more information:
> Waiting for output from post #12....
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> You received this question notification because you asked the question.
>

Revision history for this message
Ravi (ravi-kulk) said :
#18

Here's the info about libuuid.so.1

ravi@Perseus:~$ ls -lart /lib/i386-linux-gnu/libuuid.so.1
ls: cannot access /lib/i386-linux-gnu/libuuid.so.1: No such file or
directory

ravi@Perseus:~$ ls -lart /lib/x86_64-linux-gnu/libuuid.so.1
lrwxrwxrwx 1 root root 16 Nov 7 00:49 /lib/x86_64-linux-gnu/libuuid.so.1
-> libuuid.so.1.3.0

ravi@Perseus:~$ locate libuuid.so.1
/lib/x86_64-linux-gnu/libuuid.so.1
/lib/x86_64-linux-gnu/libuuid.so.1.3.0

On Sun, Dec 14, 2014 at 9:42 PM, Ravi Kulkarni <email address hidden> wrote:
>
> Answer to Q no. 12:
>
> ravi@Perseus:~$ sudo apt-get install libjpeg62
> [sudo] password for ravi:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> libjpeg62 is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 282 not upgraded.
>
> ravi@Perseus:~$ sudo apt-get install -f
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 0 upgraded, 0 newly installed, 0 to remove and 282 not upgraded.
>
>
> On Sun, Dec 14, 2014 at 9:36 PM, Mark Rijckenberg <
> <email address hidden>> wrote:
>>
>> Your question #259030 on r-base in Ubuntu changed:
>> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>>
>> Status: Open => Needs information
>>
>> Mark Rijckenberg requested more information:
>> Waiting for output from post #12....
>>
>> --
>> To answer this request for more information, you can either reply to
>> this email or enter your reply at the following page:
>> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>>
>> You received this question notification because you asked the question.
>>
>

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#19

And this one too:

file /usr/lib/rstudio/bin/rstudio

Revision history for this message
Manfred Hampl (m-hampl) said :
#20

What is the output of

ldd `which rstudio`

Revision history for this message
Ravi (ravi-kulk) said :
#21

ravi@Perseus:~$ file /usr/lib/rstudio/bin/rstudio
/usr/lib/rstudio/bin/rstudio: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.15, BuildID[sha1]=b4cd5c89b146632033c621855361d039a463205c, not stripped

On Sun, Dec 14, 2014 at 9:46 PM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Status: Open => Needs information
>
> Mark Rijckenberg requested more information:
> And this one too:
>
> file /usr/lib/rstudio/bin/rstudio
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> You received this question notification because you asked the question.
>

Revision history for this message
Ravi (ravi-kulk) said :
#22

ravi@Perseus:~$ ldd `which rstudio`
    linux-gate.so.1 => (0xf77ad000)
    libQtWebKit.so.4 => not found
    libQtXmlPatterns.so.4 => not found
    libQtGui.so.4 => not found
    libQtDBus.so.4 => not found
    libQtXml.so.4 => not found
    libQtNetwork.so.4 => not found
    libQtCore.so.4 => not found
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7775000)
    libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0xf7771000)
    libuuid.so.1 => not found
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7768000)
    libz.so.1 => not found
    libstdc++.so.6 => not found
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7721000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7704000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7555000)
    /lib/ld-linux.so.2 (0xf77ae000)

On Sun, Dec 14, 2014 at 9:51 PM, Manfred Hampl <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Manfred Hampl requested more information:
> What is the output of
>
> ldd `which rstudio`
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> You received this question notification because you asked the question.
>

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#23

That's strange.

If you had correctly followed my procedure here:

http://mark911.wordpress.com/2014/11/06/how-to-install-newest-version-of-r-and-rstudio-in-ubuntu-14-04-lts-using-a-bash-script/

you should have installed the 64-bit version of rstudio, but you have installed the 32bit version instead, even though you are running the 64-bit version of Ubuntu.

So you should uninstall rstudio and then install the 64-bit version using these commands:

sudo apt-get purge rstudio
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install gdebi-core pandoc libssl0.9.8 libapparmor1
wget http://www.rstudio.com/products/rstudio/download/
wget `cat index.html|grep -v tar|grep amd64\.deb|cut -d"\"" -f2`
sudo dpkg -i rstudio*.deb
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -f install

Revision history for this message
Ravi (ravi-kulk) said :
#24

Yes, that fixed it :)
RStudio now runs fine...
But I did run the script at mark911.wordpress.com exactly as it was there...

Thank you, everybody for your time and patience!!

  Ravi
    :)

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#25

Ravi: One last thing.... What is the output of this command?

uname -m

It should say

x86_64

If not, you still have an issue (I think)

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#26

The script at mark911.wordpress.com works 100% fine for me and I also use Ubuntu 14.04 LTS 64-bit edition (just like you).

So it should have worked....

Revision history for this message
Ravi (ravi-kulk) said :
#27

Mark,

ravi@Perseus:~$ uname -m
x86_64

So, all is ok?

  Ravi

On Sun, Dec 14, 2014 at 10:16 PM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Mark Rijckenberg posted a new comment:
> The script at mark911.wordpress.com works 100% fine for me and I also
> use Ubuntu 14.04 LTS 64-bit edition (just like you).
>
> So it should have worked....
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#28

The script on mark911 contains instructions for 32bit and 64bit.
I assume, Ravi has overlooked that and used the 32bit part.

Just follow the lines for 64bit and try again.

Revision history for this message
Ravi (ravi-kulk) said :
#29

Manfred,
  The problem got fixed - Mark fixed it for me in Post 23...

  Thanks for the help!

  Ravi
    :)

On Sun, Dec 14, 2014 at 10:31 PM, Manfred Hampl <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Manfred Hampl posted a new comment:
> The script on mark911 contains instructions for 32bit and 64bit.
> I assume, Ravi has overlooked that and used the 32bit part.
>
> Just follow the lines for 64bit and try again.
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#30

Ravi: it just means that my script was not executed properly. If you run the script CAREFULLY line by line, you will not get these types of problems. I wrote the script and tested it several times in the past. It never installs the 32-bit version. So I assume that you ran it, it gave errors, you ignored those errors and the script did not install anything at all, leaving you with your original 32-bit install of rstudio.....

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#31

It only installs the 32-bit version if uname -m is not equal to x86_64

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#32

The lesson is to be more careful in the future and immediately send us any error messages that occur when running those types of scripts....

Revision history for this message
Ravi (ravi-kulk) said :
#33

Mark,
  Well, I guess all's well that ends well, but I did not notice any errors
when I ran your script... But I did not run it line by line, so possibly I
missed the errors...
  Also, as I showed in a post, uname -m is indeed x86_64...
  Anyway, thanks for your patience and ready help!
  I have another query about a warning when I run RStudio, but that will
have to wait till this evening when I get home...

  Ravi

On Sun, Dec 14, 2014 at 10:46 PM, Mark Rijckenberg <
<email address hidden>> wrote:
>
> Your question #259030 on r-base in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/r-base/+question/259030
>
> Mark Rijckenberg posted a new comment:
> It only installs the 32-bit version if uname -m is not equal to x86_64
>
> --
> You received this question notification because you asked the question.
>