Home > OS >  Linux install gnuplot software to the specified path, unable to run
Linux install gnuplot software to the specified path, unable to run

Time:09-24

RPM package information:
 [hyf @ localhost gnuplot] $ls 
Gnuplot 4.6.2-3. El7. X86_64. RPM [/color] gnuplotSH
Gnuplot - common - 4.6.2-3. El7. X86_64. RPM
[hyf @ localhost gnuplot] $su root


install command:
 [root @ localhost gnuplot] # RPM -i - badreloc - the relocate=/usr/home/hyf/gnuplot/gnuplot4.6 gnuplot - common - 4.6.2-3. El7. X86_64. RPM 
Warning: gnuplot - common - 4.6.2-3. El7. X86_64. RPM: head/V3 RSA SHA256 Signature, key ID f4a80eb5: NOKEY
[root @ localhost gnuplot] # RPM -i - badreloc - the relocate=/usr/home/hyf/gnuplot/gnuplot4.6 gnuplot 4.6.2-3. El7. X86_64. RPM
Warning: gnuplot 4.6.2-3. El7. X86_64. RPM: head/V3 RSA SHA256 Signature, key ID f4a80eb5: NOKEY


installation results:
 [root @ localhost gnuplot4.6] # ls 
Bin libexec share


run the command:
 [root @ localhost bin] # export PATH=/home/hyf/gnuplot/gnuplot4.6/bin: $PATH 
[root @ localhost bin] # export LD_LIBRARY_PATH=/home/hyf/gnuplot/gnuplot4.6/libexec/: $LD_LIBRARY_PATH
[root @ localhost gnuplot4.6] # gnuplot - wx
G N U P L O T
Version 4.6 patchlevel 2 last modified 2013-03-14
The Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2013
Thomas Williams, Colin Kelley and many others
Gnuplot home: http://www.gnuplot.info
The FAQ, bugs, etc: type "help FAQ"
Immediate help, type "help" (the plot window: hit 'h')
Terminal type set to 'x11'
Gnuplot> The plot sin (x)


error message:
 Expected X11 driver:/usr/libexec/gnuplot/4.6/gnuplot_x11 
The Exec failed: No to the file or directory
See 'help x11' for more details


An error message: the corresponding path without the file gnuplot_x11
Before this, please use the export after adding environment variable is not play a role?
Please help me to the opinions, thank you



CodePudding user response:

If installed directly in the default directory can be run normally, but can not run in the specified directory installation, the corresponding environment variables also use the export command added, or not,
  • Related