本文介绍: 通过以下查询语句发现是32位的程序查看是否启用32位多架构。遇到包无法定位问题

篇文章仅仅记录自己安装过程,不是安装教程

64位Ubuntu18.04搭建32位程序执行环境

搭建环境时候遇到了这个问题,一直报错如下

bash: ./lmhostid: No such file or directory

通过以下查询语句发现是32位的程序

$ file lmhostid 
lmhostid: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-lsb.so.3, for GNU/Linux 2.6.9, stripped

查看是否启用32位多架构

 dpkg --print-foreign-architectures

修改执行权限

chmod +x lmhostid

安装以下包后解决

sudo apt install lsb
sudo apt-get update
sudo apt-get purge libc6-dev
sudo apt-get install libc6-dev
sudo apt-get install libc6-dev-i386
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
sudo apt-get install lib32ncurses5 ​
sudo apt-get install lib32z1

遇到包无法定位的问题

E: Unable to locate package csh
sudo apt-get update # 解决办法

修改环境变量

sudo vim ~/.bashrc
source ~/.bashrc # 立即生效
echo $DISPLAY # 查询确认

设置 WSL2 与 Xming 交互

参考链接

WSL安装VCS和verdi

参考链接1
参考链接2
参考链接3

重命名文件

mv 1610.02357.pdf 12345.pdf

清除端口

lmdown

查看端口

netstat -a

查看运行的机子:wsl --list --verbose
关闭wsl -t Ubuntu-18.04

启动VDS

vds &

启动verdi

删掉的help

   # function printPerHelp()
   {
      echo "Usage: verdi_perf [options]"
      echo "    Fsdb file and instances need to be specified before doing performance evaluation."
      echo "    Fsdb file and instances could be set in command line options or in command file."
      echo "    If both start and end time are specified, end time must be greater than start time."
      echo "    Specify the evaluation configuration either in command line options or in the command file."
      echo "    Do not use -cmd/-c with othe options, they are mutually exclusive."
      echo "    Use -h for detailed help."
      echo " "
      echo " " 

      echo "Options:"
      echo "    -fsdb,-f      Specify the fsdb file, optional."
      echo "    -instance,-i  Specify the instances, optional."
      echo "    -start,-s     Specify the start time, optional."
      echo "    -end,-e       Specify the end time, optional."
      echo "    -cmd,-c       Specify the command file, optional. Mutually exclusive with other options."
      echo "    -output,-o    Specify the output file name, optional, default is "output"."
      echo "    -format,-m    Specify the output file format, "csv" or "html", optional, default is "csv"."
      echo "    -session,-n   Specify the session saving option, "on", "off" or "fail", optional, default is "fail"." 
      echo "    -help,-h      Print this help information."
   }

原文地址:https://blog.csdn.net/weixin_44989713/article/details/128695137

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_21848.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注