linux iometer io

来源:互联网 发布:叽萝捏脸数据 编辑:程序博客网 时间:2024/05/16 13:51

1,首先在Debian 7.6 64bit需要安装iometer

下载地址:http://www.iometer.org/doc/downloads.html

2,解压iometer的目录

tar -jxvf iometer-1.1.0-linux.x86_64-bin.tar.bz2

3,运行./dymao

结果给我报错,气死我了。

这里写代码片

于是找解决方法

4,下载http://ftp.gnu.org/gnu/glibc/

下载需要的版本。

[root@localhost ~]# tar xvf glibc-2.14.tar.gz[root@localhost ~]# cd glibc-2.14[root@localhost glibc-2.14]# mkdir build[root@localhost glibc-2.14]# cd ./build[root@localhost build]# ../configure --prefix=/opt/glibc-2.14[root@localhost build]# make -j4[root@localhost build]# make install

结果还给我报错:

mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...make[1]: *** No rule to make target `/mnt/lfs/sources/glibc-build/Versions.all', needed by `/mnt/lfs/sources/glibc-build/abi-versions.h'.  Stop.make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1'make: *** [all] Error 2

5,需要安装

sudo apt-get install gawk

6,重新编译吧。

7,测试:

export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH
./dynamo

8,结果:

root@demo-2:~# ./dynamo ./dynamo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by ./dynamo)./dynamo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./dynamo)root@demo-2:~# export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATHroot@demo-2:~# ./dynamo ./dynamo: /opt/glibc-2.14/lib/libc.so.6: version `GLIBC_2.15' not found (required by ./dynamo)root@demo-2:~# 

报错少了一个。成功。

9,安装2.15时候又报错

3. 运行configure时报错::checking whether ranlib is necessary... nochecking LD_LIBRARY_PATH variable... contains current directoryconfigure: error:*** LD_LIBRARY_PATH shouldn't contain the current directory when*** building glibc. Please change the environment variable*** and run configure again.解决办法:查看LD_LIBRARY_PATH  echo $LD_LIBRARY_PATH,我的打印的是/usr/lib/qt44/lib:configure里说:LD_LIBRARY_PATH不能以终结符作为开始和最后一个字符,不能有2个终结符连在一起,所以修改下LD_LIBRARY_PATH即可,export LD_LIBRARY_PATH=/usr/lib/qt44/lib

10,运行问题

  运行iomter的时候,出现如下的错误:  ===> ERROR: Getting host name for "localhost.localdomain" failed.  [PortTCP::Create() in IOPortTCP.cpp line 238]  errno = 11  *** Could not create a TCP/IP Port. exiting.....  问题追踪:  常见的Iometer错误就是当你的网络环境沒有使用DNS造成hostname和IP无法解析的时候就会看到下面的错误提示!!  个人的最终解决方案:  执行命令:hostname ip  并且关闭windows的防火墙。
http://liuhanlin-work.qiniudn.com/iometer.tar.gz
0 0