[R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Ivailo Stoyanov
Dear Rexperts,

after building R 2.4.0 from source in a temporary directory (*without* 
installation), and subsequently moving the whole source/build tree to 
another location, I have noticed that I had to change the variables 
R_SHARE_DIR, R_INCLUDE_DIR, and R_DOC_DIR in the wrapper-script 
/lib/R/bin/R as to reflect the current situation.

However, when I try to run the HTML help via help.start() I still get an 
error message saying that:

sh: /tmp/r-project-build/usr/lib/R/share/sh/help-links.sh: No such file 
or directory

Interestingly, the system still tries to search for scripts in 
/tmp/r-project-build/, the temporary build directory that clearly isn't 
valid now.

My question is: has the mentioned path become hard-coded in the binaries 
or am I
missing some config-file/wrapper script that needs to be edited in order 
to reflect the current state?

Thank you in advance for any hints!

All the best,
Ivailo

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Marc Schwartz
On Thu, 2006-12-07 at 19:34 +0200, Ivailo Stoyanov wrote:
 Dear Rexperts,
 
 after building R 2.4.0 from source in a temporary directory (*without* 
 installation), and subsequently moving the whole source/build tree to 
 another location, I have noticed that I had to change the variables 
 R_SHARE_DIR, R_INCLUDE_DIR, and R_DOC_DIR in the wrapper-script 
 /lib/R/bin/R as to reflect the current situation.
 
 However, when I try to run the HTML help via help.start() I still get an 
 error message saying that:
 
 sh: /tmp/r-project-build/usr/lib/R/share/sh/help-links.sh: No such file 
 or directory
 
 Interestingly, the system still tries to search for scripts in 
 /tmp/r-project-build/, the temporary build directory that clearly isn't 
 valid now.
 
 My question is: has the mentioned path become hard-coded in the binaries 
 or am I
 missing some config-file/wrapper script that needs to be edited in order 
 to reflect the current state?
 
 Thank you in advance for any hints!
 
 All the best,
 Ivailo

When you moved the source/build tree to another location, did you
use 'make install' as root, or did you use 'mv' or 'cp'?

The former is the _proper_ way to actually install R, after building
from source and this is covered in the R Admin Manual. See:

  http://cran.r-project.org/doc/manuals/R-admin.html#Installation

HTH,

Marc Schwartz

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Ivailo Stoyanov
 When you moved the source/build tree to another location, did you
 use 'make install' as root, or did you use 'mv' or 'cp'?

No, I haven't used make install because I prefer to run R from within 
the build location.

 The former is the _proper_ way to actually install R, after building
 from source and this is covered in the R Admin Manual. See:
 
   http://cran.r-project.org/doc/manuals/R-admin.html#Installation

AFAIK, the approach of running R from within the build location is fully 
valid as it is noted at the end of section 2.1 Simple compilation, 
just above the cited one:

... Note: you do not need to install R: you can run it from where it 
was built.

All the best,
Ivailo

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Peter Dalgaard
Ivailo Stoyanov wrote:
 When you moved the source/build tree to another location, did you
 use 'make install' as root, or did you use 'mv' or 'cp'?
 

 No, I haven't used make install because I prefer to run R from within 
 the build location.

   
 The former is the _proper_ way to actually install R, after building
 from source and this is covered in the R Admin Manual. See:

   http://cran.r-project.org/doc/manuals/R-admin.html#Installation
 

 AFAIK, the approach of running R from within the build location is fully 
 valid as it is noted at the end of section 2.1 Simple compilation, 
 just above the cited one:
   
Yes, but then it is not actually installed.
 ... Note: you do not need to install R: you can run it from where it 
 was built.
   
You can, but note that it doesn't say that you can move the build 
location afterwards, and in fact, you can not, because of the 
non-relative pathnames.
 All the best,
 Ivailo


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Marc Schwartz
On Thu, 2006-12-07 at 20:15 +0200, Ivailo Stoyanov wrote:
  When you moved the source/build tree to another location, did you
  use 'make install' as root, or did you use 'mv' or 'cp'?
 
 No, I haven't used make install because I prefer to run R from within 
 the build location.
 
  The former is the _proper_ way to actually install R, after building
  from source and this is covered in the R Admin Manual. See:
  
http://cran.r-project.org/doc/manuals/R-admin.html#Installation
 
 AFAIK, the approach of running R from within the build location is fully 
 valid as it is noted at the end of section 2.1 Simple compilation, 
 just above the cited one:
 
 ... Note: you do not need to install R: you can run it from where it 
 was built.
 
 All the best,
 Ivailo

A key piece of information not in your original post was that you were
not installing R, but wanted to run it from whence it was built...and
then moved it and were attempting to run it from a new location.

You will need to change $R_HOME, which defines the primary home
directory for the currently running R session.  This is defined in the
main R startup script, which will be in the 'bin' sub-directory for your
R tree.

I have not validated this that will do it, but short of re-building R in
the new location, this should work I think. Many of the environmental
vars are hard coded during the build process and then modified during a
make install based upon build time configuration options. If you want
to install R in a non-default location, I would suggest considering
modifying the ./configure options and then building to suit your needs.

HTH,

Marc

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Ivailo Stoyanov
Peter Dalgaard wrote:
[snip]
 AFAIK, the approach of running R from within the build location is 
 fully valid as it is noted at the end of section 2.1 Simple 
 compilation, just above the cited one:
   
 Yes, but then it is not actually installed.
[snip]
 ... Note: you do not need to install R: you can run it from where it 
 was built.
   
 You can, but note that it doesn't say that you can move the build 
 location afterwards, and in fact, you can not, because of the 
 non-relative pathnames.

Actually, I have used R for a long time without any (apparent) problems 
being installed this way. I just changed the mentioned variables 
manually, and everything was running just fine -- until I needed to 
check the HTML help recently. Therefore I thought that I've missed to 
fix some config-file in an analogous maner to solve the problem with the 
script that wasn't found by the system.

I assume that I have to recompile (something that I was hoping to avoid 
due to the rather decent system I use currently) to get this issue 
fixed. Am I right?

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Ivailo Stoyanov
Marc Schwartz wrote:
 I have not validated this that will do it, but short of re-building R in
 the new location, this should work I think. Many of the environmental
 vars are hard coded during the build process and then modified during a
 make install based upon build time configuration options. If you want
 to install R in a non-default location, I would suggest considering
 modifying the ./configure options and then building to suit your needs.
 
 HTH,
 
 Marc

OK, I'll check the ./configure options passed through the build script I 
used last time.

Thanks to all helpers so far,
Ivailo

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help-links.sh not found by help.start() -- do I need to recompile?

2006-12-07 Thread Ivailo Stoyanov
Thanks to the valuable hints posted, I managed to track down the source 
of the problem -- a copy of the *uncorrected* /usr/lib/R/bin/R script 
was left over in /usr/bin.

Thank you again for the patience!

Greets,
Ivailo

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.