1
我正在寫一個程序使用庫SFML,它需要libX11。我剛剛從一箇舊版本升級到Ubuntu 11.04,自從我做了以後,我無法編譯我的程序。我收到以下錯誤:沒有規則使目標/usr/lib/libX11.so
make[3]: *** No rule to make target `/usr/lib/libX11.so', needed by `lib/libsfml-window.so.2.0.0'. Stop.
我想,也許是當我升級Ubuntu的那個包卸載由於某種原因,但據立得,我的libx11-dev的(我只是假設這是我應該是什麼尋找,但我可能是錯的)。
編輯:
運行給出了這樣的輸出:
sudo apt-get install libx11-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libx11-dev is already the newest version.
g++-4.4 libstdc++6-4.4-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
,並與--reinstall標誌運行給出了這樣的:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
g++-4.4 libstdc++6-4.4-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 32 not upgraded.
Need to get 0 B/3,104 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 279595 files and directories currently installed.)
Preparing to replace libx11-dev 2:1.4.2-1ubuntu3 (using .../libx11-dev_2%3a1.4.2-1ubuntu3_i386.deb) ...
Unpacking replacement libx11-dev ...
Processing triggers for man-db ...
Setting up libx11-dev (2:1.4.2-1ubuntu3) ...
我不知道。有一個X11文件夾,但是,2011-06-05 14:39 – Alex 2011-06-13 04:25:57
的時間戳我得到了同樣的錯誤亞歷克斯。你做了什麼來解決在/ usr/lib中不可見的X11文件問題? – 2011-06-30 15:05:56
查看下面的答案,我只是重建了我依賴的項目。 – Alex 2011-06-30 16:12:20