Ubuntu関連

8089 ワード

1
2
sudo apt-get install build-essential
sudo apt-get install gfortran

エラーが発生した場合:configure:error:–with-readline=yes(default)and headers/libs are not available、libreadline 6-devをインストールする必要があります:
1
sudo apt-get install libreadline6-dev

エラーが発生した場合:configure:error:–with-x=yes(default)and X 11 headers/libs are not available、libxt-devをインストールする必要があります:
1
sudo apt-get install libxt-dev

すべての依存パッケージがインストールされると、構成は成功し、コンパイルを行うと成功します.
1
2
make
make install

パッケージの解決策が見つかりません:
1.sudo gedit/etc/apt/sources.list
あなたのソースリストを編集して、元の内容をすべて削除して、下のリストの中であなたに最も適したソースを追加して(すべて追加しないでください)、最も適したものを選択して、あなたのリストにコピーして、リストを保存します.
2.sudo apt-get updateソースリスト情報の更新
「sudo apt-get update」を実行するときにエラーメッセージを表示し、接続できないソースを削除して「sudo apt-get update」を再実行できます.
3.sudo apt-get upgradeのアップグレードまたはubuntuに付属の更新マネージャでアップグレードしてもよい
Ubuntu 10.04ソースリスト:
網易(速度が速い)
deb http://mirrors.163.com/ubuntu/lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/lucid-updates universe main multiverse restricted
捜狐
deb http://mirrors.shlug.org/ubuntu/lucid main universe restricted multiverse
deb-src http://mirrors.shlug.org/ubuntu/lucid main universe restricted multiverse
deb http://mirrors.shlug.org/ubuntu/lucid-security universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/lucid-security universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/lucid-updates universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/lucid-proposed universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/lucid-proposed universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/lucid-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/lucid-updates universe main multiverse restricted
SRT Sources
deb http://ubuntu.srt.cn/ubuntu/lucid main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/lucid-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/lucid-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/lucid-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/lucid-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/lucid main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/lucid-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/lucid-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/lucid-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/lucid-backports main restricted universe multiverse
ubuntu公式上海源
deb http://mirror.rootguide.org/ubuntu/lucid main universe restricted multiverse
deb-src http://mirror.rootguide.org/ubuntu/lucid main universe restricted multiverse
deb http://mirror.rootguide.org/ubuntu/lucid-security universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/lucid-security universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/lucid-updates universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/lucid-proposed universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/lucid-proposed universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/lucid-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/lucid-updates universe main multiverse restricted 

コンパイルqvfbエラー:X 11/extensions/XTest.h:そのファイルやディレクトリがありません


分類:ubuntu Qt
2011-11-28 12:08
929人が読む
コメント(0)
コレクション
通報する
makefile
x11keyfaker.cpp:48:34:致命的なエラー:X 11/extensions/XTest.h:そのファイルやディレクトリがありません
コンパイルが中断されました.
make:***[.obj/release-shared/x 11 keyfaker.o]エラー1
解決方法:
        sudo apt-get install xorg-dev
makefileに-lXtstオプションがない場合は、makefileのLIBSオプションを変更します:-lXtstオプションを追加します.