eliihen / wsta

A CLI development tool for WebSocket APIs
GNU General Public License v3.0
630 stars 19 forks source link

Compiling on macOS with HomeBrew #19

Open akauppi opened 7 years ago

akauppi commented 7 years ago

I needed the following to get wsta to compile:

LD_LIBRARY_PATH=$(brew --prefix openssl)/lib:"${LD_LIBRARY_PATH}"
CPATH=$(brew --prefix openssl)/include:"${CPATH}"
PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig:"${PKG_CONFIG_PATH}"
export LD_LIBRARY_PATH CPATH PKG_CONFIG_PATH

Maybe this could be mentioned in the README in a suitable manner. Unfortunately, I don't feel confident in providing an actual PR.

Source: https://github.com/libimobiledevice/libimobiledevice/issues/389

eliihen commented 7 years ago

Hi!

Thanks for the heads up. I don't have a mac anymore, so I can't confirm or deny this. If this is indeed required to compile on MacOS, then I would merge a PR updating the README. Any help on the mac side of things is appreciated, seeing as I can't very well support development on a platform I don't have

akauppi commented 7 years ago

Unfortunately, I can't vouch for much help right now, either. Let's see if other Mac users thumb up this find, meaning it was not only me. :)

mgbonetti commented 4 years ago

Hi, I cannot seem to install on Mac. I get an E0713 error.

quentinfasquel commented 4 years ago

Same same here @mgbonetti any luck ?

orean commented 4 years ago
Hi! help me please, i can't install wsta with homebrew :( `==> Installing esphen/wsta/wsta ==> cargo build --release Last 15 lines from /Users/orean/Library/Logs/Homebrew/wsta/01.cargo: -- lifetime 'a defined here 245 fn as_mut_string(&mut self) -> &mut String { &mut self.url.serialization } 246 fn finish(self) -> &'a mut ::Url { self.url } ^^^^^^^^ - here, drop of self needs exclusive access to *self.url, because the type UrlQuery<'_> implements the Drop trait
returning this value requires that *self.url is borrowed for 'a

error: aborting due to previous error

For more information about this error, try rustc --explain E0713. error: could not compile url.

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed

If reporting this issue please do so to (not Homebrew/brew or Homebrew/core): esphen/wsta`