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

文章讲述了用户在使用conda安装软件后,服务器启动时出现大量环境变量改变的警告信息。虽然目前不影响使用,但用户希望消除这些提示。提到了一个临时解决方案,即注释掉相关激活和停用脚本中的打印信息行。同时,用户表示欢迎更佳的解决办法。
摘要由CSDN通过智能技术生成

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
注释掉以上脚本中可以打印相应信息的行就可以了。如果有更好的方法会再记录。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值