Hi Lan Liang,
Thanks to your report! The doc is out of date, we will update it later.
What is the full command when you got the last error you mentioned
above. I have tried but not reproduced it by commands:
***
$ git clone [email protected]:apache/incubator-pegasus.git pegasus_test
$ cd pegasus_test
$ docker run -v $PWD:/root/apache apache/pegasus:build-env-centos7
/bin/bash -c "./run.sh build -c"
Build start time: Thu Aug 25 15:36:59 UTC 2022
Start building third-parties...
~/apache/thirdparty/build ~/apache/thirdparty
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rh/devtoolset-7/root/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting up third-parties...
-- Performing Test COMPILER_SUPPORTS_FORMAT_OVERFLOW
-- Performing Test COMPILER_SUPPORTS_FORMAT_OVERFLOW - Success
-- USE_JEMALLOC = OFF
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BOOST_ROOT
Boost_NO_BOOST_CMAKE
Boost_NO_SYSTEM_PATHS
ENABLE_GCOV
ENABLE_GPERF
-- Build files have been written to: /root/apache/thirdparty/build
[ 2%] Creating directories for 'googletest'
...
***
And is it the full output, it seems the build stage of thirdparty has
been skipped?
> >>> 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
> ...
Best regards,
Yingchun Lai
On Wed, Aug 24, 2022 at 11:53 PM Lan Liang <[email protected]> wrote:
>
>
>
> > * /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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]