Ubuntu20.04usbmuxd1.1.1升级到1.1.2

先说下用到的git命令

查看当前sha分支 :

git rev-parse HEAD

切换到指定sha分支:

git checkout sha

切换python版本,指定使用python3

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1

安装libplist

sudo apt-get install libxml2-dev python-dev python-pip

sudo pip install cython

git clone https://github.com/libimobiledevice/libplist.git

cd libplist

git checkout cf7a3f3d7c06b197ee71c9f97eb9aa05f26d63b5

./autogen.sh

make

sudo make install

安装libimobiledevice-glue

git clone https://github.com/libimobiledevice/libimobiledevice-glue.git

cd libimobiledevice-glue

git checkout 3cb687baa8e69fbf57c5e05f4865184eb44abf67

./autogen.sh

make

sudo make install

安装libusbmuxd

git clone https://github.com/libimobiledevice/libusbmuxd.git

cd libusbmuxd

git checkout 2ec5354a6ff2ba5e2740eabe7402186f29294f79

./autogen.sh

make

sudo make install

安装libimobiledevice

sudo apt-get install libssl-dev

git clone https://github.com/libimobiledevice/libimobiledevice.git

cd libimobiledevice

git checkout 2c6121db9ad84b8aad05b937e071ff7dcc9c8867

./autogen.sh

make

sudo make install

安装usbmuxd

sudo apt-get install libusb-dev libusb-1.0-0-dev

git clone https://github.com/libimobiledevice/usbmuxd.git

cd usbmuxd

git checkout e3a3180b9b380ce9092ee0d7b8e9d82d66b1c261

./autogen.sh

make

sudo make install

最后重启一下

sudo reboot

PS:刚开始我libplist直接拉取最新安装了,后面我删除直接指定拉取安装,不确定有没有影响

PS:如果出现了报错 找不到libplist-2.0.so.3

usbmuxd: error while loading shared libraries: libplist-2.0.so.3: cannot open shared object file: No such file or directory

那就要去找一下,找不到就装一下,然后定义对应的输出路径

dpkg -L libplist3

没有安装需要安装

sudo apt-get update

sudo apt-get install libplist3

如果存在就查找位置

find / -name libplist-2.0.so.3 2>/dev/null

设置对应路径

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

更新库缓存

sudo ldconfig
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值