Coder Social home page Coder Social logo

Comments (13)

tbrand avatar tbrand commented on August 19, 2024

I haven't faced such a problem so far...
brew update might solve this?

from web-frameworks.

kevgathuku avatar kevgathuku commented on August 19, 2024

I've tried that already. Sadly it doesn't work.
For a bit more info, here's what I get when I run the command manually with the -v flag

Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -export_dynamic -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -dynamic -arch x86_64 -macosx_version_min 10.12.0 -o /Users/kevin/tmp/which_is_the_fastest/benchmarker/bin/client -L/usr/lib -L/usr/local/lib -lz -lssl -lcrypto -lz -lcrypto -lz -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.22.0/src/ext/libcrystal.a -levent -liconv -ldl -lSystem /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from web-frameworks.

tbrand avatar tbrand commented on August 19, 2024

Is the problem only for client? What's happen when make crystal?

from web-frameworks.

kevgathuku avatar kevgathuku commented on August 19, 2024

make crystal runs successfully. Here's the output:

make crystal
cd crystal/kemal; shards build --release
Updating https://github.com/kemalcr/kemal.git
Updating https://github.com/luislavena/radix.git
Updating https://github.com/jeromegn/kilt.git
Using kemal (0.18.3)
Using radix (0.3.8)
Installing kilt (0.3.3)
Building: server_crystal_kemal
ln -s -f ../crystal/kemal/bin/server_crystal_kemal bin/.
cd crystal/route.cr; shards build --release
Dependencies are satisfied
Building: server_crystal_route_cr
ln -s -f ../crystal/route.cr/bin/server_crystal_route_cr bin/.

from web-frameworks.

tbrand avatar tbrand commented on August 19, 2024

Hmm... 😅

from web-frameworks.

tbrand avatar tbrand commented on August 19, 2024

I'm sorry, finally I've solve this problem.
The directory which_is_the_fastest/benchmarker/bin is missing by default, so I've added it.

Could you fetch the lastest repository or make the directory manually?

The fix is here

Thanks and waiting for your feedback or PR!! 😄

from web-frameworks.

kelvinst avatar kelvinst commented on August 19, 2024

@tbrand, an empty directory is not committed on git, that's why is not downloading the benchmarker/bin folder. You can create benchmarker/bin/.keep file, then it will always download it. :)

from web-frameworks.

tbrand avatar tbrand commented on August 19, 2024

@kelvinst Thanks!
I did it already. Please pull the latest codes.
https://github.com/tbrand/which_is_the_fastest/tree/master/benchmarker

from web-frameworks.

kevgathuku avatar kevgathuku commented on August 19, 2024

@tbrand I fetched the latest version and I now have a different issue.
When I run the make command, the benchmarker binary is not present.
The README says that to run the benchmark, I need to run > bin/benchmarker but the benchmarker binary is not present in the bin directory.

When I list out the files in the bin directory, here's what I get:

ls bin

total 96
-rw-r--r--  1 kevin  staff     0B May  5 19:42 .gitkeep
lrwxr-xr-x  1 kevin  staff    25B May  6 13:12 client -> ../benchmarker/bin/client
lrwxr-xr-x  1 kevin  staff    41B May  6 13:11 server_crystal_kemal -> ../crystal/kemal/bin/server_crystal_kemal
lrwxr-xr-x  1 kevin  staff    49B May  6 13:11 server_crystal_router_cr -> ../crystal/router.cr/bin/server_crystal_router_cr
lrwxr-xr-x  1 kevin  staff    37B May  6 13:10 server_elixir_plug -> ../elixir/plug/bin/server_elixir_plug
lrwxr-xr-x  1 kevin  staff    25B May  6 13:11 server_go_echo -> ../go/echo/server_go_echo
lrwxr-xr-x  1 kevin  staff    39B May  6 13:11 server_go_gorilla_mux -> ../go/gorilla-mux/server_go_gorilla_mux
lrwxr-xr-x  1 kevin  staff    39B May  6 13:10 server_node_express -> ../node/express/bin/server_node_express
lrwxr-xr-x  1 kevin  staff    35B May  6 13:10 server_ruby_rails -> ../ruby/rails/bin/server_ruby_rails
lrwxr-xr-x  1 kevin  staff    29B May  6 13:10 server_ruby_roda -> ../ruby/roda/server_ruby_roda
lrwxr-xr-x  1 kevin  staff    35B May  6 13:10 server_ruby_sinatra -> ../ruby/sinatra/server_ruby_sinatra
lrwxr-xr-x  1 kevin  staff    44B May  6 13:11 server_rust_iron -> ../rust/iron/target/release/server_rust_iron
lrwxr-xr-x  1 kevin  staff    48B May  6 13:11 server_rust_nickel -> ../rust/nickel/target/release/server_rust_nickel

Listing out the contents of benchmarker/bin shows only one file named client

from web-frameworks.

tbrand avatar tbrand commented on August 19, 2024

What's happen when run make benchmarker?

from web-frameworks.

kevgathuku avatar kevgathuku commented on August 19, 2024

I get this message back when I run that command:
make: `benchmarker' is up to date

from web-frameworks.

tbrand avatar tbrand commented on August 19, 2024

I've commit a new fix. Could you fetch the latest codes again?
Sorry...

from web-frameworks.

tbrand avatar tbrand commented on August 19, 2024

I do close this issue since the problem might be solved.

from web-frameworks.

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.