<div dir="ltr">
        
        
        
        <style type="text/css">P { margin-bottom: 0.08in; }</style>
<p style="margin-bottom:0in"></p>
<p style="margin-bottom:0in">I am running Racket on Ubuntu.</p>
<p style="margin-bottom:0in">No problem running racket as a user.</p>
<p style="margin-bottom:0in">Trying to run racket as an
administrator, i.e., after running
</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">sudo su</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">then</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">sudo racket</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">This fails because the environment
variable PLTCOLLECTS seems to be not in effect. (Works fine when I
don't use sudo in front of the call to racket.)</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">I thought that if I can echo the value
of the variable thusly,</p>
<p style="margin-bottom:0in"># echo $PLTCOLLECTS</p>
<p style="margin-bottom:0in">and this returns:</p>
<p style="margin-bottom:0in">/home/don/.plt-scheme/4.2.1/collects</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">then the variable is in effect. I must
be missing something.</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">-----------------</p>
<p style="margin-bottom:0in">When I type:</p>
<p style="margin-bottom:0in">sudo racket</p>
<p style="margin-bottom:0in">(current-library-collection-paths)
returns:</p>
<p style="margin-bottom:0in">'(#<path:/home/don/.racket/5.2.1/collects>
#<path:/usr/local/racket/collects>)</p>
<p style="margin-bottom:0in">This is not what I want.</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">For some unknown reason this path has
not been added:
</p>
<p style="margin-bottom:0in">#<path:/home/don/.plt-scheme/4.2.1/collects></p>
<p style="margin-bottom:0in">----------------</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">When I type:</p>
<p style="margin-bottom:0in">racket</p>
<p style="margin-bottom:0in">(current-library-collection-paths)
returns:</p>
<p style="margin-bottom:0in">'(#<path:/home/don/.plt-scheme/4.2.1/collects>
#<path:/home/don/.racket/5.2.1/collects>
#<path:/usr/local/racket/collects>)</p>
<p style="margin-bottom:0in">This is what I want.</p>
<p style="margin-bottom:0in">-----------------</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">I am aware of the raco links method and
also the planet software that provides a sudo wrapper on some racket
commands, but I have reasons for wanting to first try the approach I
am attempting above.</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">Thanks for any suggestions.</p>
<p style="margin-bottom:0in">Don Green</p>
</div>