shell编译问题

在尝试编译`s_h_5*2_1`时遇到了一系列shell错误,包括`pushd`、`source`未找到,以及一些操作符错误。通过国内论坛找到的解决方案是:1) 在Ubuntu最新发行版中,将`/bin/sh`链接从`/bin/dash`改为`/bin/bash`;2) 安装`libglib2.0-dev`解决`glib-genmarshal`和`glib-mkenums`命令找不到的问题;3) 安装`g++-4.4-multilib`解决multilib '32'未安装问题;4) 在64位系统上安装32位的lzo2和uuid库以解决版本不兼容问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

s_h_5*2_1再次编译出现错误:

build_android.sh: 9: build_android.sh: pushd: not found
build_android.sh: 10: build_android.sh: source: not found
build_android.sh: 12: [: SHIP: unexpected operator
build_android.sh: 15: build_android.sh: choosecombo: not found


网上很多english的论坛说了很多都没有解决我的问题,还是国内的如下一句话解决了我的问题:

make出现错误 /bin/sh: pushd: not found

   This has to do with /bin/sh being linked to /bin/dash instead of /bin/bash in ubuntu’s    latest releases. To fix it once and for all do the following:

   # rm -f /bin/sh

   # ln -s /bin/bash /bin/sh


问题2:

/bin/bash: glib-genmarshal: command not found
/bin/bash: line 1: glib-mkenums: command not found

解决:

sudo apt-get install libglib2.0-dev


问题3:

selected multilib '32' not installed

sudo apt-get install g++-4.4-multilib


问题4:

imcompitable version of liblzo2 and libuuid

解决:

在64位上安装的版本不能用,在32位ubuntu上安装后将32位版本的lzo2和uuid拷贝过来编译通过。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值