5.配置编译选项:
# cd bc-1.06/
# ./configure --host=arm-poky-linux-gnueabi --prefix=$PWD/install
6.编译安装
$ make
$ make install
安装成功后可在install/bin目录下看到bc工具
7.测试:
把bc工具复制到开发板中
给bc一个可执行权限:
# chmod +x bc
运行:
# ./bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2 * 2.589(输入)
5.178(运算结果)