Dear community, I'm trying to install R-2.2.1 on an IRIX 6.2 (Unix System V Release 4) system without root access. Unfortunately readline is not installed in default, so I installed it locally in my home directory, more precisely in: $HOME/vol/readline-5.1, where $HOME is "/home3/fa/faga001". Afterwards I appended the path to the library with several $PATH variable, which now looks like: PATH=:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/us r/freeware/bin:/usr/local/bin:.:/home3/fa/faga001/vol:/home3/fa/faga001/vol/ readline-5.1:/home3/fa/faga001/vol/readline-5.1/lib Still, readline is not detected by the configure script. I tried the commands: ./configure --with-readline="-L/$HOME/vol/readline" ./configure --with-readline="/$HOME/vol/readline" ./configure --with-readline=/$HOME/vol/readline ./configure --x-includes="-L/$HOME/vol/readline" ./configure --x-includes="/$HOME/vol/readline" ./configure --x-libraries="-L/$HOME/vol/readline" ./configure --x-libraries="/$HOME/vol/readline" trying out the different path variants which I previously included in the $PATH variable. Nothing helps yet. According to printenv there is currently no kind of $LIBRARY or sth. like that defined, but maybe the path should rather be included in such an env. variable, I didn't find any hint in the documentation. Has someone an idea how I should link my local readline correctly, so that the library is found not only during installtion but afterwards too? regards, Benjamin
Moved to R-devel: please see the posting guide. This WAY off topic for R-help. Please do read the installation manual: configure --help says --with-readline use readline library (if available) [yes] and note, no path can be specified. The installation manual says If you have libraries and header files, e.g., for GNU readline, in non-system directories, use the variables LDFLAGS (for libraries, using `-L' flags to be passed to the linker) and CPPFLAGS (for header files, using `-I' flags to be passed to the C/C++ preprocessors), respectively, to specify these locations. These default to LDFLAGS=-L/usr/local/lib (/usr/local/lib64 on most 64-bit Linux OSes) and CPPFLAGS=-I/usr/local/include to catch the most common cases. My guess is that you need something like CPPFLAGS=-I/usr/local/include -I/home3/fa/faga001/vol/readline-5.1/include LDFLAGS=-L/usr/local/lib -L/home3/fa/faga001/vol/readline-5.1/lib If this really is readline-5.1, don't use it. It needs a patch (I believe the one found on the GNU mirror suffices) or it is badly broken, enough to crash the calling application. On Thu, 2 Feb 2006, Benjamin Otto wrote:> Dear community, > > I'm trying to install R-2.2.1 on an IRIX 6.2 (Unix System V Release 4) > system without root access. Unfortunately readline is not installed in > default, so I installed it locally in my home directory, more precisely in: > $HOME/vol/readline-5.1, where $HOME is "/home3/fa/faga001". Afterwards I > appended the path to the library with several $PATH variable, which now > looks like: > > PATH=:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/us > r/freeware/bin:/usr/local/bin:.:/home3/fa/faga001/vol:/home3/fa/faga001/vol/ > readline-5.1:/home3/fa/faga001/vol/readline-5.1/lib > > Still, readline is not detected by the configure script. I tried the > commands: > > ./configure --with-readline="-L/$HOME/vol/readline" > ./configure --with-readline="/$HOME/vol/readline" > ./configure --with-readline=/$HOME/vol/readline > ./configure --x-includes="-L/$HOME/vol/readline" > ./configure --x-includes="/$HOME/vol/readline" > ./configure --x-libraries="-L/$HOME/vol/readline" > ./configure --x-libraries="/$HOME/vol/readline" > > trying out the different path variants which I previously included in the > $PATH variable. Nothing helps yet. According to printenv there is currently > no kind of $LIBRARY or sth. like that defined, but maybe the path should > rather be included in such an env. variable, I didn't find any hint in the > documentation. > > Has someone an idea how I should link my local readline correctly, so that > the library is found not only during installtion but afterwards too?-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
>>>>> "BO" == Benjamin Otto <b.otto at uke.uni-hamburg.de> writes:BO> Dear community, BO> I'm trying to install R-2.2.1 on an IRIX 6.2 (Unix System V Release 4) BO> system without root access. Unfortunately readline is not installed in BO> default, so I installed it locally in my home directory, more precisely in: BO> $HOME/vol/readline-5.1, where $HOME is "/home3/fa/faga001". Afterwards I BO> appended the path to the library with several $PATH variable, which now BO> looks like: BO> PATH=:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/us BO> r/freeware/bin:/usr/local/bin:.:/home3/fa/faga001/vol:/home3/fa/faga001/vol/ BO> readline-5.1:/home3/fa/faga001/vol/readline-5.1/lib Ok, on Unix-alikes, libraries and executables are treated differently; PATH is for executables only. So you're looking for something to do with libraries. BO> Still, readline is not detected by the configure script. I tried the BO> commands: BO> ./configure --with-readline="-L/$HOME/vol/readline" BO> ./configure --with-readline="/$HOME/vol/readline" BO> ./configure --with-readline=/$HOME/vol/readline If you run "./configure --help", it tells you that --with-readline takes the values 'yes' and 'no', with the default being 'yes', so you don't need to set it. BO> ./configure --x-includes="-L/$HOME/vol/readline" BO> ./configure --x-includes="/$HOME/vol/readline" This is for telling configure where to find X window system header files (.h or .hh files) BO> ./configure --x-libraries="-L/$HOME/vol/readline" BO> ./configure --x-libraries="/$HOME/vol/readline" This is for telling configure where to find X window system libraries. If you look at the R Installation and Administration help page, and search on "compilation flags" (or just search repeatedly on "readline"!), you'll find that what you want to set is the environment variable LDFLAGS -- probably like this: export LDFLAGS="-L/home3/fa/faga001/vol/readline-5.1/" or export LDFLAGS="-L/home3/fa/faga001/vol/readline-5.1/ -L/usr/local/lib" BO> trying out the different path variants which I previously included BO> in the $PATH variable. Nothing helps yet. According to printenv BO> there is currently no kind of $LIBRARY or sth. like that defined, BO> but maybe the path should rather be included in such an BO> env. variable, I didn't find any hint in the documentation. When all else fails, I resort to pulling the configure script into my favorite text editor and reading that... -- Patricia J. Hawkins Hawkins Internet Applications www.hawkinsia.com
I ran into identical readline problems. For me appealing to the sysadmin to install readline correctly with rpms or the like was not an option. I needed a personal copy of R which I could update and add packages to at my own discretion. So I 1. got readline 5.2 from gnu.org. 2. From readline extracted distribution root folder, called ./configure --prefix=/myreadlinehome; make; make install 3. From R extracted distribution root folder, executed the following configure command ./configure LDFLAGS="-L/myreadlinehome/lib" --prefix=/myrhome CPPFLAGS="-I/myreadlinehome/include/" Performing those steps allowed me to build a version of R with all the familiar up/down arrow tab completion etc. -- View this message in context: http://www.nabble.com/readline-detection-problems-tp2719581p14816968.html Sent from the R help mailing list archive at Nabble.com.