CL_INSTALL_DIR is not set

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf CL_INSTALL_DIR is not set

  • Creator
    Topic
  • #55765
    James Kennedy
    Participant

      Im setting up a fresh install of cloverleaf 6.2 on Centos 7.

      Everything appeared to be setup but now running hciverify -F I get the error CL_INSTALL_DIR is not set. Exit.

      ive run: export CL_INSTALL_DIR=/cloverleaf/cis6.2/

      which executes fine, but the same error happens on hciverify -F

      any suggestions?

      Im sure im missing something simple and im fairly new to cloverleaf and linux

      This only happens when I SSH in as hciuser so it seems like a permissions thing.

      What needs to be set for the hci user and hciuser to access the GUI?

    Viewing 4 reply threads
    • Author
      Replies
      • #86429
        Rob Abbott
        Keymaster

          If this is only happening with SSH then it sounds like something is not being executed at login.

          Which user are you logging in as?

          Rob Abbott
          Cloverleaf Emeritus

        • #86430
          James Kennedy
          Participant

            Hi Rob,

            Thanks for your reply.

            Ive copied the .profile and .bashrc files from hci to hciuser folder.

            Ive created a custom file in /etc/prodile.d/ to export some of the other environment variables needed, however from the install /etc/profile also has CL_INSTALL_DIR set with the same path.

            When I SSH under root I can run hciverify -F without problem, and when I SSH under hciuser it tells me CL_INSTALL_DIR isnt set, if I run “export CL_INSTALL_DIR=….”, and run hciverify again, it still says its not been set.

            So when I try connect to the GUI from my Windows machine, it times out.

            Which user does the GUI use to access the server?

            Hopefully the above explains better my problem.

            I wasnt sure what you meant by “Also make sure the /etc/profile is being sourced at login” but my custom file in etc/profile.d/ as well as manually exporting the path should have solved any problem around this.

            Thanks in advance.

          • #86431
            David Barr
            Participant

              What’s the login shell set to for root and hciuser? You can look in /etc/passwd to find this information.

            • #86432
              James Kennedy
              Participant

                root:x:0:0:root:/root:/bin/bash

                hciuser:x:1000:1000:hciuser:/home/hciuser:/bin/bash

                hci:x:1002:1002::/home/hci:/bin/bash

              • #86433
                David Barr
                Participant

                  We have these lines at the end of /etc/profile:

                  Code:

                  # begin HCIenv 6.2
                  FPATH=/opt/cloverleaf/cis6.2/integrator/kshlib
                  export FPATH
                  CL_INSTALL_DIR=/opt/cloverleaf/cis6.2
                  export CL_INSTALL_DIR
                  # end HCIenv 6.2

                  We’re on Redhat 7.4, Cloverleaf 6.2.1.0. We don’t have this problem.

                  How are you running SSH? If you are running a non-interactive SSH session, then /etc/profile won’t be used.

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.