This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

Installation of GNU R 2.5.1 ./configure error

DrKlose

Thu Jul 30, 2015 6:05:26 pm

Hi,
I am new to Linux and like ZORIN OS a lot, but no I have a quite difficult task for a newbie and hope someone can help.
I'd like to intall GNU R bot not the latest one which is available from the software centre, I need R 2.5.1 for Genepattern http://www.broadinstitute.org/cancer/software/genepattern/administrators-guide#using-the-r-installer-plug-in and there is no binary release for that.

So I tried to compile it from source http://cran.r-project.org/src/base/R-2/R-2.5.1.tar.gz but no MAKEFILE is created so I cannot make.

Can anyone see from the attached log what is missing, what I did wrong? Really happy about any help.

Thanks!

What I did so far, copied R-2.5.1.tar.gz to /usr/local/lib and untared with

Code:
tar -xzvf R-2.5.1.tar.gz


within the directory I did

Code:
sudo ./configure --prefix=/usr/local/bin --enable-R-shlib --with-tcltk


In this step I expected the makefile to be created - but it is not.

Code:
drwxrwxr-x  4 karin staff     4096 Apr 17  2014 python2.7
drwxrwxr-x  3 karin staff     4096 Apr 17  2014 python3.4
drwxr-xr-x 10 karin karin     4096 Jul 30 17:43 R-2.5.1
-rwxrw-r--  1 karin karin 15224643 Jul 30 17:28 R-2.5.1.tar.gz


Code:
-rwxr--r--  1 karin karin       0 Sep  4  2006 ChangeLog
-rw-r--r--  1 root  root    64027 Jul 30 17:43 config.log
-rwxr--r--  1 karin karin    9032 Nov 10  2006 config.site
-rwxr-xr-x  1 karin karin 1777684 Jun 26  2007 configure
-rwxr--r--  1 karin karin   74682 Jun 26  2007 configure.ac
-rwxr--r--  1 karin karin   18011 Sep  4  2006 COPYING
drwxr-xr-x  4 karin karin    4096 Jun 28  2007 doc
drwxr-xr-x  2 karin karin    4096 Jun 28  2007 etc
-rwxr--r--  1 karin karin    1747 Sep  4  2006 INSTALL
-rwxr-xr-x  1 root  root   214452 Jul 30 17:43 libtool
drwxr-xr-x  2 karin karin    4096 Jun 28  2007 m4
-rwxr--r--  1 karin karin    4065 Mär 28  2007 Makeconf.in
-rwxr--r--  1 karin karin   12367 Mai 21  2007 Makefile.in
-rwxr--r--  1 karin karin  226021 Jun 27  2007 NEWS
-rwxr--r--  1 karin karin  315629 Sep  4  2006 ONEWS
-rwxr--r--  1 karin karin  103957 Sep  4  2006 OONEWS
drwxr-xr-x  2 karin karin    4096 Jun 28  2007 po
-rwxr--r--  1 karin karin    3922 Sep  4  2006 README
drwxr-xr-x 10 karin karin    4096 Jun 28  2007 share
drwxr-xr-x 12 karin karin    4096 Jun 28  2007 src
-rwxr--r--  1 karin karin      46 Jun 28  2007 SVN-REVISION
drwxr-xr-x  5 karin karin    4096 Jun 28  2007 tests
drwxr-xr-x  2 karin karin    4096 Jun 28  2007 tools
-rwxr--r--  1 karin karin       6 Jun 28  2007 VERSION


Code:
sudo chown $USER /usr/local/lib
sudo chmod u+rwx /usr/local/lib


Here the log file (it is too long for the post and I cannot attach a file in the forum)
https://www.dropbox.com/s/784wutcpu37oh0h/7697468-config.txt?dl=0

Swarfendor437

Thu Jul 30, 2015 11:53:55 pm

Open Terminal and enter:

Code:
sudo apt-get install alien


navigate to file in terminal and:

Code:
sudo alien [name of file]


this will create .deb file then install with software centre/re - better still, download 'gdebi' from Terminal:

Code:
sudo apt-get install gdebi


Then after the .deb file has been created, right-click and select 'Open With ...' - you may have to select an alternative to the default one shown. Gdebi is better as it will let you know if there are any missing dependencies.

[Updated as original reply sent from Android Phone! :D )

DrKlose

Fri Jul 31, 2015 8:45:33 am

Dear Swarfendor437,
thanks for your advice, but to my understanding one cannot use "alien" on *.tar.gz packages.

I only got a german reference
https://wiki.ubuntuusers.de/alien

Die Endung .tgz gibt es nicht nur für Slackware-Pakete, sondern auch als Alternative zu .tar.gz. Alien darf man mit diesen Archiven auf keinen Fall verwenden. Ein gewöhnliches Quellcodearchiv würde seine Dateien womöglich über das gesamte Dateisystem verstreuen. Dieses Archiv müsste wie oben erwähnt kompiliert werden.


So I am pretty sure I need to compile - but of course I'll try your suggestion.