我在ubuntu上面安装pgplot,结果make完之后一切顺利,在设置环境变量的时候,使用
% sudo gedit ~/.bashrc
PATH=/usr/local/PGPLOT/bin:$PATH
PGPLOT_DIR=/usr/local/pgplot/;export PGPLOT_DIR
LD_LIBRARY_PATH=/usr/local/pgplot/;export LD_LIBRARY
PGPLOT_FONT=/usr/local/pgplot/grfont.dat ;export PGPLOT_FONT
PGPLOT_DEV=/xwine;export PGPLOT_DEV
PGPLOT_LIB="-L /usr/X11R6/lib -lX11 -L /usr/local/pgplot/ -lpgplot";export PGPLOT_LIB
% source .bashrc
来设置环境变量,可是执行source .bashrc的时候却显示source .bashrc:command not found。请问大神是怎么回事。跪谢
% sudo gedit ~/.bashrc
PATH=/usr/local/PGPLOT/bin:$PATH
PGPLOT_DIR=/usr/local/pgplot/;export PGPLOT_DIR
LD_LIBRARY_PATH=/usr/local/pgplot/;export LD_LIBRARY
PGPLOT_FONT=/usr/local/pgplot/grfont.dat ;export PGPLOT_FONT
PGPLOT_DEV=/xwine;export PGPLOT_DEV
PGPLOT_LIB="-L /usr/X11R6/lib -lX11 -L /usr/local/pgplot/ -lpgplot";export PGPLOT_LIB
% source .bashrc
来设置环境变量,可是执行source .bashrc的时候却显示source .bashrc:command not found。请问大神是怎么回事。跪谢