COTson linux安装

时间:2018-02-08 18:54:06

标签: linux ubuntu g++ package

我是Linux的新手,我知道这应该是一个愚蠢的问题,但我没有通过互联网找到任何东西,所以我决定在这里问:

在使用这行代码配置COTson程序期间,它给出了一个错误:

代码:./configure --simnow_dir ../simnow-linux64-4.6.2pub

错误:

Cleaning temporary directory: /home/user/add-image_tmp_dir
* bootstrap.status is present
* WARNING: problems detected in bootstrap.status
* Run again bootstrap.sh
* Checking the cotson directory ...
* COTSon directory for images already exist.
* Tuning /etc/sysctl.conf...
*   Total RAM Memory system     = about 2 GB
*   mapoptim   = 0
*   mapmin     = 4194304
*   mapok      = 4194304
*   mapconfig  = 4194304
*   mapcurrent = 4194304
* Detected that VM configuration is ok: vm.max_map_count = 4194304
* Detected Distribution 'Ubuntu' - Version 'raring'
* Ubuntu raring supported
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
* Checking if extra packages should be installed ...
  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 

*** NOTE: for this step (installation of missing packages/dependencies: g++-multilib bison flex vnc4server rxvt xfwm4 xfonts-100dpi xfonts-75dpi zsh sharutils build-essential xvnc4viewer screen liblua5.1-0-dev zlib1g-dev indent xutils-dev libsqlite3-dev sqlite3 libdbd-sqlite3-perl libdbd-pg-perl gnuplot libboost-dev libboost-thread-dev lzma gnuplot-x11 procmail rpcbind gawk mc quota libpqxx3-dev ruby rubygems libopenssl-ruby libsqlite3-ruby ), either ask your admin or be sure you have sudo access
* Installing missing packages/dependencies...
E: Unable to correct problems, you have held broken packages.
E: Unable to correct problems, you have held broken packages.
* Packages installation FINISHED
* Checking ruby gems
sudo: gem: command not found
* Installing missing gems
* Checking connection befor to install ruby test-unit
* Connection OK
* Installing rubygems test-unit
sudo: gem: command not found
* Gems installation FINISHED

ERROR: Could not install one or more of g++ g++-multilib subversion genisoimage bison flex vnc4server  rxvt xfwm4 xfonts-100dpi xfonts-75dpi zsh sharutils build-essential xvnc4viewer screen liblua5.1-0 liblua5.1-0-dev zlib1g-dev indent xutils-dev libsqlite3-dev sqlite3 libdbd-sqlite3-perl libdbd-pg-perl gnuplot libboost-dev libboost-thread-dev lzma libxcursor1 libxrender1 libsm6 libxi6 libfontconfig1 gnuplot-x11 subversion procmail rpcbind genisoimage gawk gedit mc quota libpqxx3-dev ruby ruby1.8 rubygems libopenssl-ruby libsqlite3-ruby 
- Please check your distribution and edit 'configure' to reflect it
* ERROR: bootstrap.sh KO

以下是我遵循的指南(从第13页开始):

Teraflux_COTson_installation_guide

我知道我需要安装一些软件包,但我怎么能得到它们呢?

有关详细信息,请询问

谢谢!

更新1

我尝试使用@Scott Stensland提供的代码,但是当它开始安装软件包时,它会给我这个错误:

ERROR:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libruby' instead of 'libopenssl-ruby'
g++ is already the newest version.
libxi6 is already the newest version.
ruby1.8 is already the newest version.
subversion is already the newest version.
gedit is already the newest version.
libfontconfig1 is already the newest version.
libxrender1 is already the newest version.
genisoimage is already the newest version.
liblua5.1-0 is already the newest version.
libsm6 is already the newest version.
libxcursor1 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
 g++-multilib : Depends: gcc-multilib (>= 4:4.6.3-1ubuntu5) but it is not going to be installed
                Depends: g++-4.6-multilib (>= 4.6.3-1~) but it is not going to be installed
 liblua5.1-0-dev : Depends: liblua5.1-0 (= 5.1.4-12ubuntu1.1) but 5.1.5-4 is to be installed
                   Depends: libreadline-dev but it is not going to be installed
                   Recommends: libtool
 libpqxx3-dev : Depends: libpq-dev (>= 8.0.3-1) but it is not going to be installed
 libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.9-2ubuntu1.2) but 3.7.15.2-1ubuntu1 is to be installed
 sqlite3 : Depends: libsqlite3-0 (= 3.7.9-2ubuntu1.2) but 3.7.15.2-1ubuntu1 is to be installed
 zlib1g-dev : Depends: zlib1g (= 1:1.2.3.4.dfsg-3ubuntu4) but 1:1.2.7.dfsg-13ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

我尝试使用sudo apt-get install -f packagenamesudo apt-get autoclean $$ apt-get clear cache来解决它,但没有任何事情发生。

1 个答案:

答案 0 :(得分:0)

以下是来自msg的剪切N粘贴,前面带有安装语法

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y g++ g++-multilib subversion genisoimage bison flex vnc4server  rxvt xfwm4 xfonts-100dpi xfonts-75dpi zsh sharutils build-essential xvnc4viewer screen liblua5.1-0 liblua5.1-0-dev zlib1g-dev indent xutils-dev libsqlite3-dev sqlite3 libdbd-sqlite3-perl libdbd-pg-perl gnuplot libboost-dev libboost-thread-dev lzma libxcursor1 libxrender1 libsm6 libxi6 libfontconfig1 gnuplot-x11 subversion procmail rpcbind genisoimage gawk gedit mc quota libpqxx3-dev ruby ruby1.8 rubygems libopenssl-ruby libsqlite3-ruby 

将为您提供缺少的包

更新1

  

无法纠正问题,您已经破坏了包裹

当您在google上面显示消息时,您提到第一个链接是https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages,它指向您应该发出的下一个命令...继续并发出它建议的最佳答案,然后重新发出我列出的命令上述