Mahmoud Hosseinipour Asked: 2020-08-14 07:01:40 +0800 CST2020-08-14 07:01:40 +0800 CST 2020-08-14 07:01:40 +0800 CST 如何在 ubuntu 18.04 LTS 上安装 genimage 772 我想使用 genimage 工具为我的嵌入式设备生成文件系统,但默认情况下它似乎没有安装在 Ubuntu 18.04 中,因为当我想使用它时我得到了genimage: not found 那么这里有没有人知道我可以如何安装它? raspberrypi 18.04 embedded-system 1 个回答 Voted Best Answer nagel 2020-08-21T04:42:04+08:002020-08-21T04:42:04+08:00 #!/bin/bash # download and create genimage by nagel #update ubuntu sudo apt install -y autoconf sudo apt install -y gcc sudo apt-get install -y make sudo apt-get install -y genext2fs sudo apt-get update -y sudo apt-get install -y libconfuse-dev rm -rf download git clone https://github.com/pengutronix/genimage.git download pushd download ./autogen.sh ./configure CFLAGS='-g -O0' --prefix=/usr make popd if [ -e download/genimage ] then cp download/genimage . rm -rf download echo "creation of genimage successful" else echo "creation of genimage failed" fi;
1 个回答