Hi Folks, Sorry to bring up this kind of issue (though any discussion may help some other people). I've just installed Red Hat 9 Linux (opting for GNOME) and now want to install R. I downloaded the RPM for Red Hat 9 from CRAN (as well as the patched readline). Attempting to install ( rpm -i R-1.7.1-1.i386.rpm ) I get, pretty quickly, the following: warning: R-1.7.1-1.i386.rpm: V3 DSA signature: NOKEY, key ID 97d3544e error: Failed dependencies: libtk8.3.so is needed by R-1.7.1-1 I guess the "warning" can be ignored, but I'm bothered by the failed dependency. A: There are libtcl8.3.so and libtcl.so under /usr/lib; B: There's various "libgtk" under /usr/lib; C: There's no "libtk" D: I can't find any explicit reference to "libtk" in the installation GUI when the installation CDs are being used. So, even if libtk is in there somewhere, I can't find where to look for it. (I don't want to install everything in sight, because of restricted disk space). I suspect that "libgtk" is a GNOMEified version of libtk ... ? Usually, in my Linux experience, tcltk is a unified bunch of stuff which installs everthing for both Tcl and Tk; Red Hat 9 seems to be different (and it's my first experience of this version). ANYWAY: Has anyone encountered this problem and solved it? Or am I overlooking something simple? Comments (and especially solutions) will be most welcome. With thanks, Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 167 1972 Date: 18-Sep-03 Time: 12:58:45 ------------------------------ XFMail ------------------------------
On 09/18/03 12:58, Ted Harding wrote:>Hi Folks, >Sorry to bring up this kind of issue (though any discussion may help >some other people). > >I've just installed Red Hat 9 Linux (opting for GNOME) and now want >to install R. >I downloaded the RPM for Red Hat 9 from CRAN (as well as the patched >readline). > >Attempting to install ( rpm -i R-1.7.1-1.i386.rpm ) I get, pretty >quickly, the following: > >warning: R-1.7.1-1.i386.rpm: V3 DSA signature: NOKEY, key ID 97d3544e >error: Failed dependencies: > libtk8.3.so is needed by R-1.7.1-1 > >I guess the "warning" can be ignored, but I'm bothered by the failed >dependency. > >A: There are libtcl8.3.so and libtcl.so under /usr/lib; >B: There's various "libgtk" under /usr/lib; >C: There's no "libtk" >D: I can't find any explicit reference to "libtk" in the installation > GUI when the installation CDs are being used. So, even if libtk is > in there somewhere, I can't find where to look for it. (I don't > want to install everything in sight, because of restricted disk > space). > >I suspect that "libgtk" is a GNOMEified version of libtk ... ? Usually, >in my Linux experience, tcltk is a unified bunch of stuff which installs >everthing for both Tcl and Tk; Red Hat 9 seems to be different (and it's >my first experience of this version). > >ANYWAY: Has anyone encountered this problem and solved it? Or am I >overlooking something simple? > >Comments (and especially solutions) will be most welcome. >With thanks, >Ted.You can find what something is by searching for it in http://rpmfind.net/linux/RPM/ Turns out that libtk8.3.so is part of the tk rpm. So you could install that. (I can also find it with rpm -q --whatprovides libtk8.3.so because I already have it. But that won't help you.) I vaguely recall that the requirement for tk and tcl was not originally part of the RPM, but Martyn Plummer changed it because people (like me) were complaining that Rcmdr (and perhaps other packages) would not install without them. He also started including "configure.log" so that you would know how he had made the RPM. In the meantime, I had installed R from source, after making sure that I had tcl and tk. This was quite easy (although it took a while for everything to finish). So, I suggest that, if you do not want to install tk, then you try installing from source. The installation instructions come with the source code. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron R page: http://finzi.psych.upenn.edu/
Many thanks to Jari Oksanen and Jonathan Baron for very helpful comments on my enquiry about installing R from RPM in Red Hat 9, and the ensuing libtk problem. It does seem to be a slightly strange situation, and I have added some comments below in case they may be useful to others. On 18-Sep-03 Jari Oksanen wrote:> libtk is a `Tk' library associated with `Tcl', and known collectively > as `Tcl/Tk' [...]. It is not installed automatically in RH, unless you > select kernel sources(!), neither can it be easily found with the > modern ``user-friendly'' interface. So you need to find the `tk' > package in your CD.I mounted each of the 3 CDs and finally found tk-8.3.5-88.i386.rpm on CD number 3! It's very true that the GUI does not easily reveal this, and indeed it only showed up under "kernel sources". This is bizarre, since Tcl/Tk is such a generally useful item.> Python, perl etc. have Tk-bindings for GUI building. So it is > surprising that RH does not install this automatically.Indeed! Next saga down the line: having found it, I opened up the RPM installer on it ( rpm -i /mnt/cdrom/tk-8.3.5-88.i386.rpm ) on it, only to find that 'rpm' went to sleep -- although there was now apparently a libtk library in /usr/lib, rpm did not finish off its job. So I opted for using the GUI interface accepting that the only way to install this rather small library via that route was to install the kernel sources as well; acceptable since this also gives you the kernel header files which can be needed if you're compiling other software. This worked! On 18-Sep-03 Jonathan Baron wrote: [...]> I vaguely recall that the requirement for tk and tcl was not > originally part of the RPM, but Martyn Plummer changed it because > people (like me) were complaining that Rcmdr (and perhaps other > packages) would not install without them. He also started > including "configure.log" so that you would know how he had made > the RPM. > > In the meantime, I had installed R from source, after making sure > that I had tcl and tk. This was quite easy (although it took a > while for everything to finish). So, I suggest that, if you do > not want to install tk, then you try installing from source. The > installation instructions come with the source code.I was thinking of going down that road, but in view of your commments, Jonathan, about Rcmdr etc. it may have been a good thing to make sure there would be no problems on that front. Anyway, after all that, R has now been installed and seems to be working well. Thanks! Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 167 1972 Date: 18-Sep-03 Time: 16:05:55 ------------------------------ XFMail ------------------------------
Ted, If you are missing a shared library (libtk8.3.so) then you could just find the appropriate rpm on the RedHat9 CDs, perhaps tk-8.3.5-88.i386.rpm in /RedHat/RPMS on the second CD, and install it with sudo rpm -i. BUT, there are some known bugs in the Tcl/Tk that comes with Redhat 9 (which don't exist in previous Redhat distributions) : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=89098 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=101678 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=100793 http://www.interlink.com.au/anthony/tech/rh9-tcltk/ What I did recently on Redhat 9 is install Tcl/Tk 8.4 from source (configure;make;make install; for Tcl, then for Tk) and then install R from source (configure;make;make install). You can get Tcl/Tk source from www.tcl.tk and to build them you need the X11 developer's kit which can be installed from rpm off the Redhat9 CDs : Install XFree86-devel-4.3.0-2.i386.rpm which requires fontconfig-devel-2.1-9.i386.rpm and freetype-2.1.3-6.i386.rpm. Installing R from source will put it (by default) in /usr/local/bin/R rather than /usr/bin/R HTH, James