Hi there,
I am trying to install SDK V2.0_1207 on host machine (Ubuntu26.04).
SDK2.0 and SDK V2.0-1703 were successfully installed in QorIQ-SDK-V2.0-20160527-yocto directory.
The next step I should follow is to set up Host Environment.
But in the very next step,I was met fatal error while trying to run 'make' in Python-2.7.6 directory.
$ wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
[NOTE: Python 2.7.3 and python 2.7.5 can be used as well.]
$ tar -xf Python-2.7.6.tar.xz
$ cd Python-2.7.6
$ ./configure --prefix=/opt/python-2.7.6
$ make
$ sudo make install
I succeeded in ./configure --prefix=/opt/python-2.7.6.
But in the next step where I executed 'make',I got fatal error which said
fatal error: rpc/rpc.h: No such file or directory
17 | #include <rpc/rpc.h>
| ^~~~~~~~~~~
compilation terminated.
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 _ssl
_tkinter bsddb185 bz2
dbm dl gdbm
imageop readline sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
I do not have any hint to fix it.
Please give me any idea to handle it.
Thanks a lot
解決済! 解決策の投稿を見る。
Yocto Project can work on most recent Linux distributions with Python-2.7.3 or greater.
On Ubuntu 16.04, Python 2.7.12 is integrated, so no need to install python 2.7.6 manually.
Hi, yipingwang
Thank you for your concern.
The vesion of Python on Ubutu20.04 is 3.8.10 as shown in the following snapshot.
But it seems like that the command in fsl-setup-env wants python to be called, not python3 which is integrated in Ubuntu20.04.
vm2004@ubuntu:~/QorIQ-SDK-V2.0-20160527-yocto$ . ./fsl-setup-env -m ls1043ardb
Configuring for ls1043ardb ...
/home/vm2004/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb was created before.
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
BitBake requires Python 2.7.3 or later
Back to build project /home/vm2004/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb.
Nothing is changed.
vm2004@ubuntu:~/QorIQ-SDK-V2.0-20160527-yocto/sources/poky$ python --version
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
vm2004@ubuntu:~/QorIQ-SDK-V2.0-20160527-yocto/sources/poky$ python3 --version
Python 3.8.10
vm2004@ubuntu:~/QorIQ-SDK-V2.0-20160527-yocto/sources/poky$
Pls let me know what to do.
Best regards and thanks
QorIQ SDK 2.0 doesn't work on Ubutu20.04.
Please install it on Ubuntu 16.04.
It all works on Ubuntu14.04.6.
Not working on any other distribution with python version not being 2.7.x.
Thanks,