conda显示“INFO: deactivate-gfortran_linux-64.sh made the following environmental changes:”

Conda显示警告信息内容

如下,因为昨天想用conda安装一个软件,安装了很多东西,结果第二天一打开服务器就出现这样的信息,目前看着没有实质性影响,但是非常碍眼,所以想着解决一下。

INFO: deactivate-gfortran_linux-64.sh made the following environmental changes:
-DEBUG_FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments
-F95=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-f95
-FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe
-FORTRANFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe
-GFORTRAN=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gfortran
INFO: deactivate-gcc_linux-64.sh made the following environmental changes:
-CC=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-cc
-CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe
-CPPFLAGS=-D_FORTIFY_SOURCE=2 -O2
-CPP=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-cpp
-DEBUG_CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments
-GCC_AR=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc-ar
-GCC=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc
-GCC_NM=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc-nm
-GCC_RANLIB=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc-ranlib
-LDFLAGS=-Wl,-O2,--sort-common,--as-needed,-z,relro,-z,now
INFO: deactivate-binutils_linux-64.sh made the following environmental changes:
-ADDR2LINE=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-addr2line
-AR=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ar
-AS=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-as
-CXXFILT=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-c++filt
-ELFEDIT=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-elfedit
-GPROF=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gprof
-LD_GOLD=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ld.gold
-LD=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ld
-NM=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-nm
-OBJCOPY=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-objcopy
-OBJDUMP=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-objdump
-RANLIB=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ranlib
-READELF=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-readelf
-SIZE=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-size
-STRINGS=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-strings
-STRIP=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-strip
INFO: activate-binutils_linux-64.sh made the following environmental changes:
+ADDR2LINE=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-addr2line
+AR=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ar
+AS=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-as
+CXXFILT=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-c++filt
+ELFEDIT=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-elfedit
+GPROF=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gprof
+LD_GOLD=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ld.gold
+LD=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ld
+NM=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-nm
+OBJCOPY=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-objcopy
+OBJDUMP=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-objdump
+RANLIB=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ranlib
+READELF=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-readelf
+SIZE=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-size
+STRINGS=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-strings
+STRIP=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-strip
+CC=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-cc
+CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe
+CPPFLAGS=-D_FORTIFY_SOURCE=2 -O2
+CPP=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-cpp
+DEBUG_CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments
+GCC_AR=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc-ar
+GCC=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc
+GCC_NM=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc-nm
+GCC_RANLIB=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gcc-ranlib
+LDFLAGS=-Wl,-O2,--sort-common,--as-needed,-z,relro,-z,now
+DEBUG_FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments
+F95=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-f95
+FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe
+FORTRANFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe
+GFORTRAN=/home/wangkl/miniconda3/bin/x86_64-conda_cos6-linux-gnu-gfortran

解决方法

目前用的是治标不治本的解决方法,把打印这些信息的脚本注释掉2333
哪些脚本可以打印这些信息呢,如下:
~/miniconda3/etc/conda/activate.d/
activate-binutils_linux-64.sh
activate-gfortran_linux-64.sh
activate-gcc_linux-64.sh
~/miniconda3/etc/conda/deactivate.d
deactivate-binutils_linux-64.sh
deactivate-gcc_linux-64.sh
deactivate-gfortran_linux-64.sh
注释掉以上脚本中可以打印相应信息的行就可以了。如果有更好的方法会再记录。

你可能感兴趣的:(开源项目,conda,linux,运维)