<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: trouble setting default SHLIB_PATH environmental in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509004#M21885</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;think you have to put a line ie:&lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH=/...... ; export SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;into your /etc/profile&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Fri, 23 Mar 2001 14:57:46 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2001-03-23T14:57:46Z</dc:date>
    <item>
      <title>trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509002#M21883</link>
      <description>I just installed SyncSort on my 11.0 box (L2000)&lt;BR /&gt;and it requires an entry in the SHLIB_PATH &lt;BR /&gt;environmental variable.  No problem, i figure, so, i went to /etc/SHLIB_PATH and added their library to&lt;BR /&gt;what was already there.  The same sort of thing &lt;BR /&gt;works find for /etc/PATH all the time....&lt;BR /&gt;&lt;BR /&gt;HOWEVER, when i logon and echo $SHLIB_PATH, it says "sh: SHLIB: Parameter not set."&lt;BR /&gt;&lt;BR /&gt;Is there something else i have to do to make the&lt;BR /&gt;system "see" the default SHLIB_PATH in /etc like&lt;BR /&gt;it does the default PATH in /etc?&lt;BR /&gt;&lt;BR /&gt;Thanks for any pointers... Lynne Seamans,&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2001 14:41:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509002#M21883</guid>
      <dc:creator>Lynne Seamans</dc:creator>
      <dc:date>2001-03-23T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509003#M21884</link>
      <description>Show us your export command&lt;BR /&gt;&lt;BR /&gt;should be something like&lt;BR /&gt;export $PATH=$PATH:/extra_path&lt;BR /&gt;echo $PATH to verify&lt;BR /&gt;&lt;BR /&gt;or any other variable&lt;BR /&gt;echo $VARIABLE&lt;BR /&gt;export VARIABLE=value&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2001 14:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509003#M21884</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-03-23T14:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509004#M21885</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;think you have to put a line ie:&lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH=/...... ; export SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;into your /etc/profile&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 23 Mar 2001 14:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509004#M21885</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-03-23T14:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509005#M21886</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Think you made a typo in your query. When you echo $SHLIB_PATH, if it has not been set, it should say "sh: SHLIB_PATH: Parameter not set." instead of "sh: SHLIB: Parameter not set." as indicated.&lt;BR /&gt;&lt;BR /&gt;As already mentioned by the rest, assigning and exporting it in the global /etc/profile is the cleanest. &lt;BR /&gt;&lt;BR /&gt;If you only want to tailor SHLIB_PATH specifically to a login account, then you have to add it into ~/.profile of that login user for sh, bash, ksh shells. For csh and tcsh shells, you have to add eg. "setenv SHLIB_PATH /a/b/c:/d/e/f" into either ~/.cshrc or ~/.login.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Fri, 23 Mar 2001 15:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509005#M21886</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-03-23T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509006#M21887</link>
      <description>Details:&lt;BR /&gt;Here is my exact /etc/SHLIB_PATH &lt;BR /&gt;&lt;BR /&gt;/usr/lib:/opt/cobol/cobdir/coblib:/etc/opt/resmon/lib:/usr/local/syncsort/lib&lt;BR /&gt;&lt;BR /&gt;If i don't put anything in my profile, shouldn't I get those values?&lt;BR /&gt;&lt;BR /&gt;BUt anyways, I did put in my profile :&lt;BR /&gt;&lt;BR /&gt;        SHLIB_PATH=$SHLIB_PATH:/usr/local/syncsort/lib&lt;BR /&gt;        export SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;which i realize would give me syncsort twice, but &lt;BR /&gt;i'm just testing.&lt;BR /&gt;&lt;BR /&gt;when i logged back on i got:&lt;BR /&gt;&lt;BR /&gt;.profile[32]: SHLIB_PATH: Parameter not set. &lt;BR /&gt;&lt;BR /&gt;which made me think the $SHLIB_PATH didn't &lt;BR /&gt;have any value to add anything to.&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2001 15:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509006#M21887</guid>
      <dc:creator>Lynne Seamans</dc:creator>
      <dc:date>2001-03-23T15:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509007#M21888</link>
      <description>Sorry I made a typo too..&lt;BR /&gt;I think you all spotted it on the export..&lt;BR /&gt;&lt;BR /&gt;In any case, in your .profile on line 32 are you trying to reference the SHLIB_PATH env variable before it is exported.  Your export cammand looks just fine.&lt;BR /&gt;echo $SHLIB_PATH even though there is an error in your case should work if that were the case.&lt;BR /&gt;&lt;BR /&gt;You might want to add a set -x near the top of your .profile to debug the .profile.  &lt;BR /&gt;&lt;BR /&gt;To source your profile on the fly try&lt;BR /&gt;. ~/.profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 23 Mar 2001 15:36:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509007#M21888</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-03-23T15:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509008#M21889</link>
      <description>Now wait, let's back up here.  &lt;BR /&gt;&lt;BR /&gt;For PATH, if I want to add to the stuff i get for "free"&lt;BR /&gt;in /etc/PATH, i put close to the top of my .profile&lt;BR /&gt;PATH=$PATH:newstuff:morenewstuff&lt;BR /&gt;and it works, no exporting, whatever.&lt;BR /&gt;&lt;BR /&gt;That's what i'm trying to do for SHLIB_PATH.&lt;BR /&gt;So, that's what I just tried.   my profile is:&lt;BR /&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;BR /&gt;".profile" 71 lines, 1536 characters &lt;BR /&gt;# @(#) $Revision: 74.2 $&lt;BR /&gt;# Default (example of) super-user's .profile file&lt;BR /&gt;# Do not put "." in PATH; it is a potential security breach.&lt;BR /&gt;# Do not put "/usr/local/bin" in PATH; it is a potential security breach.&lt;BR /&gt;# Example assumes /home/root exists.&lt;BR /&gt;        set +u&lt;BR /&gt;        PATH=/usr/sbin:$PATH:/sbin:/home/root/bin:/opt/sudo/bin:/opt/sudo/etc:/opt/omni/sbin:/usr/local/sbin&lt;BR /&gt;MANPATH=$MANPATH:/opt/sudo/man&lt;BR /&gt;SHLIB_PATH=$SHLIB_PATH:/usr/local/syncsort/lib=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-&lt;BR /&gt;PATH and MANPATH are right.  when i say &lt;BR /&gt;echo  $SHLIB_PATH it says:&lt;BR /&gt;:/usr/local/syncsort/lib&lt;BR /&gt;which implies the $SHLIB_PATH was null, and i only &lt;BR /&gt;got the appended stuff.  &lt;BR /&gt;&lt;BR /&gt;Where's the values from /etc/SHLIB_PATH????</description>
      <pubDate>Fri, 23 Mar 2001 15:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509008#M21889</guid>
      <dc:creator>Lynne Seamans</dc:creator>
      <dc:date>2001-03-23T15:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509009#M21890</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I believe you will have to deal with /etc/SHLIB_PATH differently from /etc/PATH. Notice that when you perform a grep of '/etc/PATH', it is referenced in /etc/csh.login and /etc/profile. However, /etc/SHLIB_PATH is not referenced anywhere in /etc/*.&lt;BR /&gt;&lt;BR /&gt;Thus, SHLIB_PATH variable has to be explicitly assigned or you can choose to modify /etc/profile or /etc/csh.login to source /etc/SHLIB_PATH within the script itself. &lt;BR /&gt;=========================================&lt;BR /&gt;# cd /etc&lt;BR /&gt;# grep 'SHLIB_PATH' * 2&amp;gt;/dev/null&lt;BR /&gt;#&lt;BR /&gt;# grep '/etc/PATH' * 2&amp;gt;/dev/null&lt;BR /&gt;csh.login:      if ( -r /etc/PATH ) then&lt;BR /&gt;csh.login:              # present in /etc/PATH then $PATH is set to the contents&lt;BR /&gt;csh.login:              # of /etc/PATH.  Otherwise, add the contents of /etc/PATH&lt;BR /&gt;csh.login:                        -e ':/usr/bin$' /etc/PATH&lt;BR /&gt;csh.login:                      set path=($path `tr ":" " " csh.login:                      set path=(`tr ":" " " profile:# Modify the variables through /etc/PATH and /etc/MANPATH&lt;BR /&gt;profile:        else    if [ -r /etc/PATH ]&lt;BR /&gt;profile:                # present in /etc/PATH then $PATH is set to the contents&lt;BR /&gt;profile:                # of /etc/PATH.  Otherwise, add the contents of /etc/PAT&lt;BR /&gt;H&lt;BR /&gt;profile:                                -e ":/usr/bin$" /etc/PATH&lt;BR /&gt;profile:                                PATH=`cat /etc/PATH`&lt;BR /&gt;profile:                                PATH=$PATH:`cat /etc/PATH`   &lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Fri, 23 Mar 2001 16:05:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509009#M21890</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-03-23T16:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: trouble setting default SHLIB_PATH environmental</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509010#M21891</link>
      <description>That was it... the default profile (namely /etc/profile) did&lt;BR /&gt;NOT cat the data in /etc/SHLIB_PATH the way it did for&lt;BR /&gt;/etc/PATH and /etc/MANPATH, so naturally it wasn't &lt;BR /&gt;picked up at login.&lt;BR /&gt;&lt;BR /&gt;Just had to change /etc/profile to include a:&lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH=`cat /etc/SHLIB_PATH`&lt;BR /&gt;&lt;BR /&gt;and all was fine.  Thanks!</description>
      <pubDate>Mon, 26 Mar 2001 19:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-setting-default-shlib-path-environmental/m-p/2509010#M21891</guid>
      <dc:creator>Lynne Seamans</dc:creator>
      <dc:date>2001-03-26T19:44:07Z</dc:date>
    </item>
  </channel>
</rss>

