Rich Shepard | 30 Aug 01:28 2011

Why Might a SBo Application Look in /usr/local?

   I've been running R-2.13.0 and decided to upgrade to -2.13.1. I downloaded
the new scripts and source, built and upgraded the package. When I try to
invoke it I see:

[rshepard <at> salmo ~]$ R
-bash: /usr/local/bin/R: No such file or directory

   I've no idea where to look to see where the shell is getting the wrong
location. I've been using the SlackBuild packages for several versions now
and haven't before come across this issue.

   Any ideas?

Rich

Donald Allen | 30 Aug 03:13 2011
Picon

Re: Why Might a SBo Application Look in /usr/local?


The output of


On Mon, Aug 29, 2011 at 7:28 PM, Rich Shepard <rshepard-KkAdcJ6K5ch3D81bB7cC2g@public.gmane.org> wrote:
>  I've been running R-2.13.0 and decided to upgrade to -2.13.1. I downloaded
> the new scripts and source, built and upgraded the package. When I try to
> invoke it I see:
>
> [rshepard <at> salmo ~]$ R
> -bash: /usr/local/bin/R: No such file or directory
>
>  I've no idea where to look to see where the shell is getting the wrong
> location. I've been using the SlackBuild packages for several versions now
> and haven't before come across this issue.

It's a bit difficult to help with so few details about your system and what you did to build the new R. I can tell you that I did this same upgrade today on a Slackware 13.37 x86_64 system, downloading and building the package from slackbuilds.org with sbopkg, and R 2.13.1 works fine, and the R executable is in /usr/bin, where you'd expect it to be.

>
>  Any ideas-

To try to help you, I'd be interested in knowing the architecture and version of the Slackware system you are running and seeing the result of

ls -l /var/adm/packages/R*

cat /var/adm/packages/R-2.13.1*

hash

and

echo $PATH

from the instance of bash giving you the error would be useful.

/Don Allen

>
> Rich
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users-ko+OqhKiB2wsHrnhXWJB8w@public.gmane.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>

<div>
<br>The output of <br><br><br>On Mon, Aug 29, 2011 at 7:28 PM, Rich Shepard &lt;<a href="mailto:rshepard@...">rshepard@...</a>&gt; wrote:<br>&gt; &nbsp;I've been running R-2.13.0 and decided to upgrade to -2.13.1. I downloaded<br>
&gt; the new scripts and source, built and upgraded the package. When I try to<br>&gt; invoke it I see:<br>&gt;<br>&gt; [rshepard <at> salmo ~]$ R<br>&gt; -bash: /usr/local/bin/R: No such file or directory<br>&gt;<br>&gt; &nbsp;I've no idea where to look to see where the shell is getting the wrong<br>
&gt; location. I've been using the SlackBuild packages for several versions now<br>&gt; and haven't before come across this issue.<br><br>It's a bit difficult to help with so few details about your system and what you did to build the new R. I can tell you that I did this same upgrade today on a Slackware 13.37 x86_64 system, downloading and building the package from <a href="http://slackbuilds.org">slackbuilds.org</a> with sbopkg, and R 2.13.1 works fine, and the R executable is in /usr/bin, where you'd expect it to be.<br><br>&gt;<br>&gt; &nbsp;Any ideas-<br><br><div>To try to help you, I'd be interested in knowing the architecture and version of the Slackware system you are running and seeing the result of<br><br>ls -l /var/adm/packages/R*</div>
<div><br></div>
<div>cat /var/adm/packages/R-2.13.1*<br><div>
<br>hash<br><br>and<br><br>echo $PATH<br><br>from the instance of bash giving you the error would be useful.</div>
<div><br></div>
<div>/Don Allen<br><br>&gt;<br>
&gt; Rich<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; SlackBuilds-users mailing list<br>&gt; <a href="mailto:SlackBuilds-users@...">SlackBuilds-users@...</a><br>
&gt; <a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>&gt; Archives - <a href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
&gt; FAQ - <a href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a><br>&gt;<br>&gt;<br><br>
</div>
</div>
</div>
Rich Shepard | 30 Aug 03:27 2011

Re: Why Might a SBo Application Look in /usr/local?

On Mon, 29 Aug 2011, Donald Allen wrote:

> To try to help you, I'd be interested in knowing the architecture and
> version of the Slackware system you are running and seeing the result of
>
> ls -l /var/adm/packages/R*

Don,

(Slackware-13.1/32-bit)

[rshepard <at> salmo ~]$ ll /var/log/packages/R*
-rw-r--r-- 1 root root 73083 2011-08-29 16:29
/var/log/packages/R-2.13.1-i486-1_SBo
-rw-r--r-- 1 root root 13272 2010-11-08 09:49
/var/log/packages/ReportLab_1_20

> cat /var/adm/packages/R-2.13.1*

PACKAGE NAME:     R-2.13.1-i486-1_SBo
COMPRESSED PACKAGE SIZE:     25620K
UNCOMPRESSED PACKAGE SIZE:     42140K
PACKAGE LOCATION: /tmp/R-2.13.1-i486-1_SBo.tgz
PACKAGE DESCRIPTION:
R: R (language and environment for statistical computing)
R:
R: R is a language and environment for statistical computing and
R: graphics. It is a GNU project which is similar to the S language
R: and environment which was developed at Bell Laboratories
R: by John Chambers and colleagues. R can be considered as a
R: different implementation of S. There are some important
R: differences, but much code written for S runs unaltered under R.
R:
R:
R:
FILE LIST:
./
usr/
usr/lib/
usr/lib/R/
usr/lib/R/etc/
usr/lib/R/etc/repositories
usr/lib/R/etc/Makeconf

   etc.

> hash
>
> and
>
> echo $PATH
>
> from the instance of bash giving you the error would be useful.

[rshepard <at> salmo ~]$ R
-bash: /usr/local/bin/R: No such file or directory
[rshepard <at> salmo ~]$ echo $PATH
/opt/db-main/bin:/home/rshepard/bin:/usr/local/bin/java:/opt/qt/bin:opt/wx/2.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/java/bin:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin:.

   Makes no sense to me, either.
Rich Shepard | 30 Aug 03:29 2011

Re: Why Might a SBo Application Look in /usr/local?

On Mon, 29 Aug 2011, Donald Allen wrote:

> cat /var/adm/packages/R-2.13.1*

   Here's the tail, after everything in /usr/lib:

usr/doc/
usr/doc/R-2.13.1/
usr/doc/R-2.13.1/README
usr/doc/R-2.13.1/R.SlackBuild
usr/doc/R-2.13.1/OLDER_NEWS.tgz
usr/bin/
usr/bin/R
usr/bin/Rscript
usr/man/
usr/man/man1/
usr/man/man1/R.1.gz
usr/man/man1/Rscript.1.gz
install/
install/slack-desc

   There's nothing pointing to usr/local/bin.

Rich
Niels Horn | 30 Aug 03:43 2011
Picon

Re: Why Might a SBo Application Look in /usr/local?

On Mon, Aug 29, 2011 at 10:29 PM, Rich Shepard <rshepard@...> wrote:
> On Mon, 29 Aug 2011, Donald Allen wrote:
>
>> cat /var/adm/packages/R-2.13.1*
>
>  Here's the tail, after everything in /usr/lib:
>
> usr/doc/
> usr/doc/R-2.13.1/
> usr/doc/R-2.13.1/README
> usr/doc/R-2.13.1/R.SlackBuild
> usr/doc/R-2.13.1/OLDER_NEWS.tgz
> usr/bin/
> usr/bin/R
> usr/bin/Rscript
> usr/man/
> usr/man/man1/
> usr/man/man1/R.1.gz
> usr/man/man1/Rscript.1.gz
> install/
> install/slack-desc
>
>  There's nothing pointing to usr/local/bin.
>
> Rich

What does

$ which R

give you?

--
Niels Horn
Rich Shepard | 30 Aug 04:34 2011

Re: Why Might a SBo Application Look in /usr/local? [SOLVED]

On Mon, 29 Aug 2011, Rich Shepard wrote:

>  I've no idea where to look to see where the shell is getting the wrong
> location. I've been using the SlackBuild packages for several versions now
> and haven't before come across this issue.

   Well, I came up with the right idea and looked in ~/.bash_profile. For
some reason I aliased R to look in /usr/local/bin. Since I installed R from
the SBo packages over the past few years I've no idea why I did this nor do
I know why R ran (from /usr/bin) until today.

   I am suitably embarrassed.

Mea culpa!

Rich
Donald Allen | 30 Aug 05:01 2011
Picon

Re: Why Might a SBo Application Look in /usr/local? [SOLVED]

On Mon, Aug 29, 2011 at 10:34 PM, Rich Shepard <rshepard@...> wrote:
> On Mon, 29 Aug 2011, Rich Shepard wrote:
>
>>  I've no idea where to look to see where the shell is getting the wrong
>> location. I've been using the SlackBuild packages for several versions now
>> and haven't before come across this issue.
>
>  Well, I came up with the right idea and looked in ~/.bash_profile. For
> some reason I aliased R to look in /usr/local/bin. Since I installed R from
> the SBo packages over the past few years I've no idea why I did this nor do
> I know why R ran (from /usr/bin) until today.
>
>  I am suitably embarrassed.

Well, you should be; no one else has ever done anything that dumb
before, certainly not me :-) (Believe me, I really am kidding!)

For years, I've talked about writing a book about the various strange
and wonderful ways we screw ourselves with computers (not a
particularly original idea). If you can stand a war story, 35+ years
ago, I worked on and later ran the Tenex project at BBN. BBN was one
of the key companies that built the ARPAnet (the predecessor of the
Internet) and Tenex, an operating system developed by us for the DEC
PDP-10, was the most common host OS on the network. One of the guys in
the Tenex group wrote a backup and archiving system. The first time he
ran it in production, it archived its own executable and source files.
Archived files could only be read by the archiving program. Me: So
should be no problem -- you have a copy of all that stuff on DECTape,
right? Him: Um, no.

/Don

>
> Mea culpa!
>
> Rich
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users@...
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>

Gmane