在Linux上为theos安装ldid

时间:2014-10-12 22:31:19

标签: ios linux jailbreak

我对linux及其shell完全陌生。我正在尝试按照http://iphonedevwiki.net/index.php/Theos/Getting_Started#NIC_Example上的教程安装Theos并部署应用程序,但是我遇到了第4步的问题

将ldid下载到$THEOS/bin:

git clone git://git.saurik.com/ldid.git
cd ldid
git submodule update --init
./make.sh
cp -f ./ldid $THEOS/bin/ldid

第一个命令运行,我得到以下输出

Cloning into 'ldid'...
remote: Counting objects: 175, done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 175 (delta 93), reused 102 (delta 56)
Receiving objects: 100% (175/175), 50.31 KiB | 0 bytes/s, done.
Resolving deltas: 100% (93/93), done.
Checking connectivity... done.

下一个命令cd ldid执行,我现在在/home/MYNAME/ldid内 我运行下一个命令,没有输出。

最后这是我怀疑错误的地方。我运行./make.sh我得

+ g++ -o ldid ldid.cpp -I. -x c lookup2.c sha1.c
./make.sh: line 19: g++: command not found

我应该提一下我在运行Fedora 20-1的虚拟机上。

根据建议,我安装了gcc& g ++运行./make.sh但仍然以

失败
+ g++ -arch i386 -arch x86_64 -o ldid ldid.cpp -I. -x c lookup2.c sha1.c
g++: error: i386: No such file or directory
g++: error: x86_64: No such file or directory
g++: error: unrecognized command line option ‘-arch’
g++: error: unrecognized command line option ‘-arch’

1 个答案:

答案 0 :(得分:1)

git clone https://github.com/daeken/ldid.git
cd ./ldid
./make.sh