rpm包資訊:
[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
安裝命令:
[root@localhost gnuplot]# rpm -i --badreloc --relocate /usr=/home/hyf/gnuplot/gnuplot4.6 gnuplot-common-4.6.2-3.el7.x86_64.rpm
警告:gnuplot-common-4.6.2-3.el7.x86_64.rpm: 頭V3 RSA/SHA256 Signature, 密鑰 ID f4a80eb5: NOKEY
[root@localhost gnuplot]# rpm -i --badreloc --relocate /usr=/home/hyf/gnuplot/gnuplot4.6 gnuplot-4.6.2-3.el7.x86_64.rpm
警告:gnuplot-4.6.2-3.el7.x86_64.rpm: 頭V3 RSA/SHA256 Signature, 密鑰 ID f4a80eb5: NOKEY
安裝結果:
[root@localhost gnuplot4.6]# ls
bin libexec share
運行命令:
[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
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
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'x11'
gnuplot> plot sin(x)
報錯資訊:
Expected X11 driver: /usr/libexec/gnuplot/4.6/gnuplot_x11
Exec failed: No such file or directory
See 'help x11' for more details
報錯資訊提示:對應路徑下沒有該檔案gnuplot_x11
請問在這之前用export添加環境變數后是沒有起到作用嗎?
請幫忙給一下意見,謝謝
uj5u.com熱心網友回復:
若直接安裝在默認目錄下可以正常運行,但是安裝在指定目錄下不能運行。相應的環境變數也用export命令添加了,還是不行。轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/70589.html
標籤:專題技術討論區
上一篇:請教一下linux系統中lvm 這個Attr 這部分引數是什么意思
下一篇:深度學習cudnn報錯
