OpenNetworkLinux icon indicating copy to clipboard operation
OpenNetworkLinux copied to clipboard

Problems compiling build file

Open rs-jcopeland opened this issue 3 years ago • 5 comments

Hey, We are running into issues following the build instructions on [https://github.com/opencomputeproject/OpenNetworkLinux/blob/master/docs/Building.md].

Here's the output from the commands we are attempting to run. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. josh@RUN-100975-debian:~$ sudo su [sudo] password for josh: root@RUN-100975-debian:/home/josh# cd OpenNetworkLinux root@RUN-100975-debian:/home/josh/OpenNetworkLinux# ls builds docker docs LICENSE make Makefile packages README.md REPO setup.env sm tools root@RUN-100975-debian:/home/josh/OpenNetworkLinux# make bash: make: command not found root@RUN-100975-debian:/home/josh/OpenNetworkLinux# make docker bash: make: command not found root@RUN-100975-debian:/home/josh/OpenNetworkLinux# docker/tools/onlbuilder (-8) bash: syntax error near unexpected token `-8' root@RUN-100975-debian:/home/josh/OpenNetworkLinux#

Any assistance would be much appreciated. Cheers!

rs-jcopeland avatar May 03 '22 14:05 rs-jcopeland

I do not see sudo su on that page. What instructions did you follow.

The error

# make
bash: make: command not found

suggests, that the GNU Make is not installed. Did you run the commend below mentioned in the beginning?

sudo apt install apt-transport-https make binfmt-support

paulmenzel avatar May 03 '22 14:05 paulmenzel

Let me give it a shot. I'll get back to you shortly. Thanks for the quick response!

rs-jcopeland avatar May 03 '22 14:05 rs-jcopeland

Here are the results:

root@RUN-100975-debian:~# sudo apt install apt-transport-https make binfmt-support root@RUN-100975-debian:~# cd OpenNetworkLinux make: docker/tools/onlbuilder: No such file or directory root@RUN-100975-debian:~/OpenNetworkLinux# export VERSION=8 root@RUN-100975-debian:~/OpenNetworkLinux# make docker make: docker/tools/onlbuilder: No such file or directory make: *** [Makefile:56: docker] Error 127 root@RUN-100975-debian:~/OpenNetworkLinux# ls builds docker docs LICENSE make Makefile packages README.md REPO setup.env sm tools root@RUN-100975-debian:~/OpenNetworkLinux# docker/tools/onlbuilder (-8) bash: syntax error near unexpected token -8' root@RUN-100975-debian:~/OpenNetworkLinux# docker/tools/onlbuilder -8 bash: docker/tools/onlbuilder: /usr/bin/python2: bad interpreter: No such file or directory`

Screenshot_4

rs-jcopeland avatar May 03 '22 14:05 rs-jcopeland

You did not answer, why you run sudo su in the beginning. Please read up on users rights/permissions.

What does ls -l docker/tools show?

PS: In GitHub’s Markdown flavor, you can enclose code blocks in ```. PPS: Instead of screenshots, better paste the lines as text.

paulmenzel avatar May 03 '22 15:05 paulmenzel

you need to install python2 and all be fine

Blueblazer172 avatar Nov 13 '22 11:11 Blueblazer172