alexhegit / petalinux-v2018.2-docker

Install and Run petalinux-v2018.2 by docker
6 stars 4 forks source link

error occures when running the command "sudo docker build ./ --network=host --build-arg version=2018.2 --build-arg date_created=1110 -t petalinux-182-ubuntu:test"" #1

Open linbaiwpi opened 5 years ago

linbaiwpi commented 5 years ago

The print of screen is shown below:

--2019-03-19 02:44:44-- http://cpanmin.us/ Resolving cpanmin.us (cpanmin.us)... 151.101.66.217, 151.101.130.217, 151.101.2.217, ... Connecting to cpanmin.us (cpanmin.us)|151.101.66.217|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 302780 (296K) [text/plain] Saving to: 'STDOUT'

 0K .......... .......... .......... .......... .......... 16% 2.16M 0s
50K .......... .......... .......... .......... .......... 33% 7.29M 0s

100K .......... .......... .......... .......... .......... 50% 3.46M 0s 150K .......... .......... .......... .......... .......... 67% 11.0M 0s 200K .......... .......... .......... .......... .......... 84% 4.88M 0s 250K .......... .......... .......... .......... ..... 100% 11.1M=0.06s

2019-03-19 02:44:44 (4.67 MB/s) - written to stdout [302780/302780]

! Finding App::cpanminus on cpanmetadb failed. ! cannot open file '/root/.cpanm/sources/http%www.cpan.org/02packages.details.txt.gz': No such file or directory opening compressed index ! Couldn't find module or a distribution App::cpanminus The command '/bin/sh -c wget -O - http://cpanmin.us | perl - App::cpanminus' returned a non-zero code: 1

vipZhongP commented 5 years ago

try modify Dockerfile line RUN wget -O - http://cpanmin.us | perl - App::cpanminus add "sudo" before perl after is "RUN wget -O - http://cpanmin.us | sudo perl - App::cpanminus"