Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Not install websocketpp by homebrew (MacOS) #17

Closed
Brian0906 opened this issue Mar 7, 2018 · 5 comments
Closed

Can Not install websocketpp by homebrew (MacOS) #17

Brian0906 opened this issue Mar 7, 2018 · 5 comments

Comments

@Brian0906
Copy link

briandeMacBook-Pro:MAgent brian$ brew install --HEAD david-icracked/websocketpp/websocketpp
==> Installing websocketpp from david-icracked/websocketpp
==> Cloning git://github.com/zaphoyd/websocketpp
Updating /Users/brian/Library/Caches/Homebrew/websocketpp--git
==> Checking out branch master
Error: Calling Formula#std_cmake_parameters is disabled!
Use Formula#std_cmake_args instead.
/usr/local/Homebrew/Library/Taps/david-icracked/homebrew-websocketpp/websocketpp.rb:9:in `install'
Please report this to the david-icracked/websocketpp tap!
Or, even better, submit a PR to fix it!

@rideoff
Copy link

rideoff commented May 24, 2018

==> Installing websocketpp from david-icracked/websocketpp
==> Cloning git://github.com/zaphoyd/websocketpp
Updating /Users/lanjiedediannao/Library/Caches/Homebrew/websocketpp--git
==> Checking out branch master
==> cmake . ["-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG", "-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG", "-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/websocketpp/HEAD-378437a", "-DCMAKE_BUILD_TYPE=Rele
Last 15 lines from /Users/lanjiedediannao/Library/Logs/Homebrew/websocketpp/01.HEAD-378437a",:
2018-05-24 17:34:07 +0800

cmake . ["-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG", "-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG", "-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/websocketpp/HEAD-378437a", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_FIND_FRAMEWORK=LAST", "-DCMAKE_VERBOSE_MAKEFILE=ON", "-Wno-dev"]

CMake Error: The source directory "/tmp/websocketpp-20180524-26535-1ap1r7z/[-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG," does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

@merrymercy
Copy link
Collaborator

cc @Kipsora

@Kipsora
Copy link
Collaborator

Kipsora commented May 28, 2018

This problem is caused by the outdated brew formula. You can fixed it either by manually installing websocketpp from source or modifying the formula file /usr/local/Homebrew/Library/Taps/david-icracked/homebrew-websocketpp/websocketpp.rb to the code below:

require 'formula'

class Websocketpp < Formula
  head 'https://github.com/zaphoyd/websocketpp.git'

  depends_on 'cmake' => :build

  def install
    system "cmake  . #{std_cmake_args.join(" ")}"
    system "make install"
  end
end

Then you re-run the brew install --HEAD david-icracked/websocketpp/websocketpp command and you can successfully install websocketpp on your MAC.

@Kipsora Kipsora closed this as completed May 28, 2018
@Kipsora
Copy link
Collaborator

Kipsora commented Mar 30, 2021

@sven941112 Please create another issue so that the others can see your problem as well.

@sven941112
Copy link

I am running MAgent on my MacBook Pro m1, but some mistakes happened, which are listed as follows:
"OSError: dlopen(/Users/pipi/miniforge3/envs/py38/lib/python3.8/site-packages/magent/libmagent.dylib, 10): no suitable image found. Did find:
/Users/.../miniforge3/envs/py38/lib/python3.8/site-packages/magent/libmagent.dylib: mach-o, but wrong architecture
/Users/.../miniforge3/envs/py38/lib/python3.8/site-packages/magent/libmagent.dylib: mach-o, but wrong architecture"
I don't know whether is my PC is based on ARM architecture. if yes, how can I solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants