suse

How to tell if a Linux machine supports AVX/AVX2 instructions?

给你一囗甜甜゛ 提交于 2019-11-27 17:22:06
问题 I'm on SUSE Linux Enterprise 10/11 machines. I launch my regressions to a farm of machines running Intel processors. Some of my tests fail because my tools are built using a library which requires AVX/AVX2 instruction support. I get an Illegal exception error. In Linux, is there any commands I can use to determine what is the CPU code/family name? I believe AVX and AVX2 are available onward from Intel SandyBridge and Haswell family, respectively. 回答1: On linux (or unix machines) the

On linux SUSE or RedHat, how do I load Python 2.7

巧了我就是萌 提交于 2019-11-27 10:31:32
Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface. Instructions to download source and install: https://www.python.org/download/ NOTE: You should check for the latest version of python 2.7.x, as it gets updated frequently. Currently (Oct 2017), the latest version is 2.7.14 though this comment will get old and new versions likely will be released every 6 months

Compiler can't find libxml/parser.h

筅森魡賤 提交于 2019-11-27 05:56:30
问题 I am on Debian 8 (Jessie), 64 Bit. I installed libxml2-dev , which now sits in /usr/include/libxml2/libxml . But when I do (just like libxml docs say) #include <libxml/parser.h> I only get when compiling (with gcc ) fatal error: libxml/parser.h: no such file or directory Notes: On another machine, with an old 64 Bit Suse, where libxml2-dev sits in the exact same path and no other environment vars are set compared to the new Debian, it works perfectly fine. Problem occured while migrating from

Find multiple files and rename them in Linux

穿精又带淫゛_ 提交于 2019-11-26 17:24:15
I am having files like a_dbg.txt, b_dbg.txt ... in a Suse 10 system. I want to write a bash shell script which should rename these files by removing "_dbg" from them. Google suggested me to use rename command. So I executed the command rename _dbg.txt .txt *dbg* on the CURRENT_FOLDER My actual CURRENT_FOLDER contains the below files. CURRENT_FOLDER/a_dbg.txt CURRENT_FOLDER/b_dbg.txt CURRENT_FOLDER/XX/c_dbg.txt CURRENT_FOLDER/YY/d_dbg.txt After executing the rename command, CURRENT_FOLDER/a.txt CURRENT_FOLDER/b.txt CURRENT_FOLDER/XX/c_dbg.txt CURRENT_FOLDER/YY/d_dbg.txt Its not doing

SUSE中搭建kafka

无人久伴 提交于 2019-11-26 16:39:10
搭建环境: JDK: java version 1.8.0_221 zookeeper:zookeeper-3.5.2 kafka: kafka-2. 11-1.1.0 一、安装JDK 由于需要java环境,所以我们需先安装JDK 1、下载JDK并解压 mkdir /usr/java //在usr下创建java cp jdk-8u221-linux-x64.tar.gz /usr/java/ //将下载好的JDK文件copy到/usr/java目录 cd /usr/java tar -xzvf jdk-8u221-linux-x64.tar.gz //解压到当前目录 2、配置环境变量 vi /etc/profile 将下面内容添加到文件最后: JAVA_HOME=/usr/java/jdk1.8.0_221 CLASSPATH=$JAVA_HOME/lib/ PATH=$PATH:$JAVA_HOME/bin export PATH JAVA_HOME CLASSPATH 保存后退出,并执行 source /etc/profile //使环境变量生效 3、查看安装情况 java -version 有时会遇到: 每次打开一个终端,都要输入source /etc/profile 环境变量才会生效! 解决方法: vi ~/.bashrc将 source /etc/profile

[导入]SuSE SLED still can't work on my computers.

只谈情不闲聊 提交于 2019-11-26 15:16:44
I installed SuSE Linux Enterprise Desktop 10 on my Desktop computer and Benq Joybook 3000 notebook. Both of them can't wake up from suspend. I try to disable ACPI when start up from GRUB and my notebook can wake up, but screen can't restored and displays error image. Time is limited for me, so I won't try more. If suspend to ram can't work on both of them, it should be regret to SuSE SLED 10. 文章来源: http://www.hesicong.net/pjblog/default.asp?id=50 转载于:https://www.cnblogs.com/hesicong/archive/2006/08/28/648679.html 来源: https://blog.csdn.net/weixin_30596735/article/details/98913574

On linux SUSE or RedHat, how do I load Python 2.7

百般思念 提交于 2019-11-26 15:13:17
问题 Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface. 回答1: Instructions to download source and install: https://www.python.org/download/ NOTE: You should check for the latest version of python 2.7.x, as it gets updated frequently. Currently (Oct 2017), the latest

Find multiple files and rename them in Linux

非 Y 不嫁゛ 提交于 2019-11-26 05:23:00
问题 I am having files like a_dbg.txt, b_dbg.txt ... in a Suse 10 system. I want to write a bash shell script which should rename these files by removing \"_dbg\" from them. Google suggested me to use rename command. So I executed the command rename _dbg.txt .txt *dbg* on the CURRENT_FOLDER My actual CURRENT_FOLDER contains the below files. CURRENT_FOLDER/a_dbg.txt CURRENT_FOLDER/b_dbg.txt CURRENT_FOLDER/XX/c_dbg.txt CURRENT_FOLDER/YY/d_dbg.txt After executing the rename command, CURRENT_FOLDER/a