[what] when execute sparrow/4-docker/buildall in x86_64 machine [error] lockfile-create: command not found [how] use arch=$(arch), support download lockfile-create command in aarch64 and x86_64. [why] weget link and rpm not support ${arch}, must use arch=$(arch)
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/0-package/os/openEuler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index ba298c8..31d795d 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -23,7 +23,8 @@ pkgs=(
yum install -y --skip-broken "${pkgs[@]}"
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(arch) +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel... +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel...
-rpm -i lib64lockfile1-1.16-1-omv4002.aarch64.rpm lockfile-progs-0.1.18-5-omv4002.aarch64.rpm +rpm -i lib64lockfile1-1.16-1-omv4002.${arch}.rpm lockfile-progs-0.1.18-5-omv4002.${arch}.rpm
On Fri, Oct 30, 2020 at 10:16:15AM +0800, Liu Yinsi wrote:
[what] when execute sparrow/4-docker/buildall in x86_64 machine [error] lockfile-create: command not found [how] use arch=$(arch), support download lockfile-create command in aarch64 and x86_64. [why] weget link and rpm not support ${arch}, must use arch=$(arch)
Your code does not support the why.
Thanks, Xueliang
Signed-off-by: Liu Yinsi liuyinsi@163.com
sparrow/0-package/os/openEuler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index ba298c8..31d795d 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -23,7 +23,8 @@ pkgs=(
yum install -y --skip-broken "${pkgs[@]}"
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(arch) +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel... +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel...
-rpm -i lib64lockfile1-1.16-1-omv4002.aarch64.rpm lockfile-progs-0.1.18-5-omv4002.aarch64.rpm
+rpm -i lib64lockfile1-1.16-1-omv4002.${arch}.rpm lockfile-progs-0.1.18-5-omv4002.${arch}.rpm
2.23.0
[error] lockfile-create: command not found [how] use arch=$(arch), support download lockfile-create command in aarch64 and x86_64. [why] weget link and rpm not support ${arch}, must use arch=$(arch)
Your code does not support the why.
ok
Thanks, Yinsi
Thanks, Xueliang
Signed-off-by: Liu Yinsi liuyinsi@163.com
sparrow/0-package/os/openEuler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index ba298c8..31d795d 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -23,7 +23,8 @@ pkgs=(
yum install -y --skip-broken "${pkgs[@]}"
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(arch) +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel... +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel...
-rpm -i lib64lockfile1-1.16-1-omv4002.aarch64.rpm lockfile-progs-0.1.18-5-omv4002.aarch64.rpm
+rpm -i lib64lockfile1-1.16-1-omv4002.${arch}.rpm lockfile-progs-0.1.18-5-omv4002.${arch}.rpm
2.23.0
On Fri, Oct 30, 2020 at 10:16:15AM +0800, Liu Yinsi wrote:
[what] when execute sparrow/4-docker/buildall in x86_64 machine [error] lockfile-create: command not found [how] use arch=$(arch), support download lockfile-create command in aarch64 and x86_64. [why] weget link and rpm not support ${arch}, must use arch=$(arch)
Signed-off-by: Liu Yinsi liuyinsi@163.com
sparrow/0-package/os/openEuler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index ba298c8..31d795d 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -23,7 +23,8 @@ pkgs=(
yum install -y --skip-broken "${pkgs[@]}"
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(arch) +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel... +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel...
-rpm -i lib64lockfile1-1.16-1-omv4002.aarch64.rpm lockfile-progs-0.1.18-5-omv4002.aarch64.rpm +rpm -i lib64lockfile1-1.16-1-omv4002.${arch}.rpm lockfile-progs-0.1.18-5-omv4002.${arch}.rpm
how about rm them after install
Thanks, Shenwei
-- 2.23.0
On Fri, Oct 30, 2020 at 10:16:15AM +0800, Liu Yinsi wrote:
[what] when execute sparrow/4-docker/buildall in x86_64 machine [error] lockfile-create: command not found [how] use arch=$(arch), support download lockfile-create command in aarch64 and x86_64. [why] weget link and rpm not support ${arch}, must use arch=$(arch)
[why] when execute sparrow/4-docker/buildall in x86_64 machine error: lockfile-create: command not found because weget link and rpm only support aarch64 now [how] use arch=$(arch), support download lockfile-create command according to system architecture.
more clear
Thanks, Jiaxin
On Fri, Oct 30, 2020 at 10:32:22AM +0800, Lin Jiaxin wrote:
On Fri, Oct 30, 2020 at 10:16:15AM +0800, Liu Yinsi wrote:
[what] when execute sparrow/4-docker/buildall in x86_64 machine [error] lockfile-create: command not found [how] use arch=$(arch), support download lockfile-create command in aarch64 and x86_64. [why] weget link and rpm not support ${arch}, must use arch=$(arch)
[why] when execute sparrow/4-docker/buildall in x86_64 machine error: lockfile-create: command not found because weget link and rpm only support aarch64 now [how] use arch=$(arch), support download lockfile-create command according to system architecture.
more clear
good
Thanks, Yinsi
Thanks, Jiaxin