
mips64
マシンで を実行していますDebian
Wheezy
。GCC
コンパイラは問題なくインストールされますが、リンカーに問題があります。
apt-get install gcc make
gcc helloworld.c -o helloworld
/usr/bin/ld: cannot find crt1.o: No such file or directory
インターネットで簡単に検索してみると、私が失踪したと思われるバージョンが見つかりました。libc6-dev
ただし、それは間違ったバージョンです。
apt-get install libc6-dev
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.13-38+deb7u9) but 2.13-38+deb7u10 is to be installed
インストールを強制するには:
apt-get download libc6-dev
dpkg -i --force-all libc6-dev_2.13-38+deb7u9_mips.deb
問題は解決しましたが、ツールを使用するたびにapt
、互換性のないパッケージがあるというエラーが表示されます。次のことを試しました。
apt-get install libc6-dev=2.13-38+deb7u9
libc6-dev : Depends: libc6 (= 2.13-38+deb7u9) but 2.13-38+deb7u10 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
また、「親」パッケージをアップグレードしようとするとlib6
、すでに最新バージョン (2.13-38+deb7u9) がインストールされていると表示されます。
この問題は 2 日前に発生しました (おそらくlibc6-dev
2.13-38+deb7u10 がリリースされたときですが、 のバージョンは同じではありませんでしたlibc6
)。ここですべての依存関係を満たす方法はありますか?
答え1
問題が何であるかが分かりました。パッケージ リポジトリにlibc-dev-bin
何らかの理由で最新のものがなかったため、次の方法で問題は解決しました。
curl -O http://ftp.debian.org/debian/pool/main/e/eglibc/libc-dev-bin_2.13-38+deb7u10_mips.deb
dpkg -i libc-dev-bin_2.13-38+deb7u10_mips.deb
apt-get install gcc make automake autoconf linux-libc-dev
curl -O http://ftp.debian.org/debian/pool/main/e/eglibc/libc6-dev_2.13-38+deb7u10_mips.deb
dpkg -i libc6-dev_2.13-38+deb7u10_mips.deb
(その順序である必要があります)sources.list 内のリポジトリを変更しても問題は解決しないので、原因はいずれ修正されると思います。
答え2
私のシステムには libc6-deb7u11 がインストールされていたので、u10 に置き換える必要がありました。パッケージは次の場所にあります:
http://ftp.us.debian.org/debian/pool/main/e/eglibc/libc6_2.13-38+deb7u10_mips.deb