> * /bin/bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or > directory *. The reason is run the source code packaged by windwos in linux, which contains the symbol of the windwos file.
Download source again and compile it on the Centos7, also failed. From image of apache/pegasus:build-env-centos7. *** >>> compiling thrift file dsn.layer2.thrift ... mkdir /root/apache/idl/output /root/apache/thirdparty/output/bin/thrift -gen cpp:moveable_types -out output dsn.layer2.thrift mv output/dsn.layer2_types.h /root/apache/src/rdsn/include/dsn/cpp/serialization_helper mv output/dsn.layer2_types.cpp /root/apache/src/rdsn/src/runtime rm -rf /root/apache/idl/output done Gen git_commit.h ... ~/apache/src ~/apache ~/apache fatal: Not a git repository (or any parent up to mount point /root/apache) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). PEGASUS_GIT_COMMIT=non-git-repo Generating /root/apache/src/include/pegasus/git_commit.h... [Wed Aug 24 15:47:02 UTC 2022] Building Pegasus ... ~/apache/src/release__builder ~/apache/src ~/apache ~/apache make: /usr/local/lib/python3.6/dist-packages/cmake/data/bin/cmake: Command not found make: *** [cmake_check_build_system] Error 127 *** Best Regards, Lan Liang ---- Replied Message ---- | From | Lan Liang<[email protected]> | | Date | 8/24/2022 10:15 | | To | [email protected]<[email protected]> | | Subject | Re: How can i run pegasus from container image | Just fill the link for [0]. [0] https://pegasus.apache.org/docs/build/compile-by-docker/ Best Regards, Lan Liang ---- Replied Message ---- | From | Lan Liang<[email protected]> | | Date | 8/23/2022 23:43 | | To | [email protected]<[email protected]> | | Subject | How can i run pegasus from container image | Hi pegasus community: I want to run pegasus from docker and i follow the doc of compile-by-docker [0] to try it. And the container image apachepegasus/build-env:2.1.0-centos7 is not exist. So i found the image of apache/pegasus:build-env-centos7 and run command of *** docker run -v $PWD:/root/apache apache/pegasus:build-env-centos7 /bin/bash -c "./run.sh build -c" *** to compile on the pegasus source, and just got the error of * /bin/bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or directory *. And it would be great if i can run the pegasus from some docker image. Remind me if i missed something,Thanks. Best Regards, Lan Liang
