Announcement

Collapse
No announcement yet.

export command not found

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    export command not found

    I need to run the export command:

    export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

    but I get the message that the export command cannot be found.
    I have tried to run this from the /usr/local/lib folder and my /home folder.
    I appreciate your help.


    #2
    Re: export command not found

    The syntax is:

    export PATH=$PATH:[directory]
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: export command not found

      @Snowhog: dtrapp's syntax is actually correct. By putting his /usr/local/lib before the already existing $PATH, he is telling the system to search /usr/local/lib first before the system-defined paths, which, in many cases, is the desired behavior.

      That said, I don't understand why the export command would be missing, since it is a BASH builtin command.
      Jucato's Data Core

      Comment


        #4
        Re: export command not found

        Thank you Jucato for the info. The syntax I posted was from my Running Linux, 4th Edition (O'Reilly).

        Did a Google search on export bash and reviewed this link. From a konsole shell help export provides:

        export: export [-nf] [name[=value] ...] or export -p
        NAMEs are marked for automatic export to the environment of
        subsequently executed commands. If the -f option is given,
        the NAMEs refer to functions. If no NAMEs are given, or if `-p'
        is given, a list of all names that are exported in this shell is
        printed. An argument of `-n' says to remove the export property
        from subsequent NAMEs. An argument of `--' disables further option
        processing.
        Using Kubuntu Linux since March 23, 2007
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment

        Working...
        X