Git Product home page Git Product logo

error:~/emqtt-bench$ make /home/deploy/emqtt-bench/scripts/ensure-rebar3.sh 3.19.0-emqx-1 /home/deploy/emqtt-bench/rebar3 compile /usr/bin/env: ‘escript’: No such file or directory Makefile:12: recipe for target 'compile' failed make: *** [compile] Error 127 about emqtt-bench HOT 23 CLOSED

q534953428 avatar q534953428 commented on July 17, 2024
error:~/emqtt-bench$ make /home/deploy/emqtt-bench/scripts/ensure-rebar3.sh 3.19.0-emqx-1 /home/deploy/emqtt-bench/rebar3 compile /usr/bin/env: ‘escript’: No such file or directory Makefile:12: recipe for target 'compile' failed make: *** [compile] Error 127

from emqtt-bench.

Comments (23)

id avatar id commented on July 17, 2024 1

@q534953428
how did you install Erlang/OTP?
what does which erl say? Could you run ls in the directory where you have erl?

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024 1

换成dorker后可以,我想可能master代码有些兼容问题。谢谢回答!It can be changed to dorker. I think there may be some compatibility issues with the master code. Thank you for your answer

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

I tried otp_src_20.3/ and otp_src_22.3 and it didn't work

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

Ask for advice

from emqtt-bench.

id avatar id commented on July 17, 2024

@q534953428 looks like escript is not in $PATH. Please make sure that bin directory of Erlang/OTP distribution is in the $PATH.

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

image

How do I check?

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

image

wget http://erlang.org/download/otp_src_22.3.tar.gz
tar xzf otp_src_22.3.tar.gz
cd otp_src_22.3
./configure --prefix=/home/erlang --without-javac
make & make install
ln -s /home/erlang/bin/erl /usr/local/bin/erl
export PATH=$PATH:/home/erlang/bin

from emqtt-bench.

thalesmg avatar thalesmg commented on July 17, 2024

Does your distribution have Erlang available? It might be simpler to install from that.

Also, note that OTP 22 is quite old by now, emqtt-bench supports OTP 24 and higher.

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

你的发行版有 Erlang 可用吗?从那里安装可能更简单。

另外请注意,OTP 22 现在已经很老了,emqtt-bench 支持 OTP 24 及更高版本。

ok,我试试OTP 24

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

A new error message has been reported

Submodule path 'submodules/openssl/wycheproof': checked out '2196000605e45d91097147c9c71f26b72af58003'
./build.sh: 18: ./build.sh: cmake: not found
Makefile:11: recipe for target 'build-nif' failed
make[1]: *** [build-nif] Error 127
make[1]: Leaving directory '/home/deploy/emqtt-bench/_build/default/lib/quicer'
===> Hook for compile failed!

Makefile:12: recipe for target 'compile' failed
make: *** [compile] Error 1

image

from emqtt-bench.

id avatar id commented on July 17, 2024

@q534953428 try this

BUILD_WITHOUT_QUIC=1 make

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

BUILD_WITHOUT_QUIC=1 make

image

Thank you but still fail

from emqtt-bench.

id avatar id commented on July 17, 2024

@q534953428 it's again the old error about escript. How did you manage to solve it previously?

from emqtt-bench.

id avatar id commented on July 17, 2024

Also if you have docker, it might be easier to build binaries using our docker image. For example, for Debian 11 it will look like this:

rm -rf _build
docker run -it --rm -v $(pwd):/w -w /w ghcr.io/emqx/emqx-builder/5.0-33:1.13.4-24.3.4.2-3-debian11 make

We have emqx/emqx-builder images available for many different linux distros, see https://github.com/emqx/emqx-builder/pkgs/container/emqx-builder%2F5.0-33/versions?filters%5Bversion_type%5D=tagged.

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

@q534953428这又是关于 的旧错误escript。你以前是怎么解决的?

The original otp22, now I use the new otp24, the screenshot above

from emqtt-bench.

id avatar id commented on July 17, 2024

A new error message has been reported

Submodule path 'submodules/openssl/wycheproof': checked out '2196000605e45d91097147c9c71f26b72af58003' ./build.sh: 18: ./build.sh: cmake: not found Makefile:11: recipe for target 'build-nif' failed make[1]: *** [build-nif] Error 127 make[1]: Leaving directory '/home/deploy/emqtt-bench/_build/default/lib/quicer' ===> Hook for compile failed!

Makefile:12: recipe for target 'compile' failed make: *** [compile] Error 1

image

@q534953428 here you don't have problem with escript. How did you solve it?

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

报告了新的错误消息
子模块路径'submodules/openssl/wycheproof':签出'2196000605e45d91097147c9c71f26b72af58003'./build.sh:18:./build.sh:cmake:未找到Makefile:11:目标'build-nif'的配方失败[1] : *** [build-nif] Error 127 make[1]: Leaving directory '/home/deploy/emqtt-bench/_build/default/lib/quicer' ===> Hook for compile failed!
Makefile:12: 目标“编译”的配方失败 make: *** [编译] 错误 1
图像

@q534953428在这里,您对 escript 没有问题。你是怎么解决的?

Upgrade otp24, try again and this is the result

from emqtt-bench.

id avatar id commented on July 17, 2024

Yes, I understand. So can you run this command on otp24 where you have escript?

BUILD_WITHOUT_QUIC=1 make`

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

是的我明白。那么你可以在你拥有的 otp24 上运行这个命令吗escript

BUILD_WITHOUT_QUIC=1 make`

image

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

是的我明白。那么你可以在你拥有的 otp24 上运行这个命令吗escript

BUILD_WITHOUT_QUIC=1 make`

escript

After an error is reported, it is an old error

from emqtt-bench.

id avatar id commented on July 17, 2024

@q534953428

The problem is that you linked erl to /usr/local/bin, but not the rest of erlang binaries.

ln -s /home/erlang/bin/erl /usr/local/bin/erl

Try this:

export PATH=$PATH:/home/erlang/bin
BUILD_WITHOUT_QUIC=1 make

from emqtt-bench.

q534953428 avatar q534953428 commented on July 17, 2024

No, I guess I'll have to use docker. Thank you

from emqtt-bench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.