RedHat MANPATH

  • Creator
    Topic
  • #50443

    After installing Cloverleaf 5.6 on RedHat, when I do a “man grep” I get “No man entry for grep.”

    I added “export MANPATH” to .profile.local.end, and now “man grep” works again.

    Does something in the Cloverleaf installation overwrite the MANPATH variable or unset it somehow? Is adding the export line the correct way to fix this?

    -- Max Drown (Infor)

Viewing 5 reply threads
  • Author
    Replies
    • #66118

      Ok, so it looks like “setsite” is somehow overwriting MANPATH or something …. . When I log into the RedHat box as hci, I can access the man pages no problem. After I do a setsite, I can no longer access the man pages.

      -- Max Drown (Infor)

    • #66119

      I’m guessing it might be a shell problem? RedHat uses bash by default.

      Code:


      # $Id: setsite.ksh,v 1.5 2007/10/26 18:10:24 gyu Exp $
      #
      # setsite: ksh function to establish/modify HCI environment variables
      #
      # Copyright (c) 1994-1998, Healthdyne Information Enterprises, Inc.
      # All rights reserved.
      #
      # Author: Larry V. Streepy, Jr.
      #   Date: 09/23/94
      #
      # Usage:
      #       setsite site
      #       setsite -clear
      #
      # Notes:
      #       Just evals the output of hcisetenv.
      #

      function setsite {
         eval `${CL_INSTALL_DIR}/integrator/sbin/hcisetenv -site ksh $*`
      }

      -- Max Drown (Infor)

    • #66120

      *bump*

      -- Max Drown (Infor)

    • #66121
      David Barr
      Participant

        I’m having this problem on Redhat/Cloverleaf 5.7 rev2.

      • #66122
        David Barr
        Participant

          I think I’ve found a solution for this problem.  I added export MANPATH=”:$MANPATH” to my .profile.local.end.

          Redhat likes having an empty entry in the MANPATH, and setsite strips out empty entries from the end of the MANPATH, so I put it at the beginning.

        • #66123

          Excellent find!!! Seems to be working for me, too.

          -- Max Drown (Infor)

      Viewing 5 reply threads
      • The forum ‘Operating Systems’ is closed to new topics and replies.