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

Add Rust client to README.md #551

Merged
merged 1 commit into from
Jan 3, 2016
Merged

Add Rust client to README.md #551

merged 1 commit into from
Jan 3, 2016

Conversation

luthfianto
Copy link
Contributor

I wrote a client in Rust and would love for it to be included in the Readme. Thanks 😄

@igorshubovych
Copy link
Collaborator

While trying to compile with:

  • Rust 1.5.0
  • OSX El Capitan
Build failed, waiting for other jobs to finish...
failed to compile `tldr v0.1.2`, intermediate artifacts can be found at `/Users/igor/Projects/tldr-pages.github.io/target-install`

Caused by:
  failed to run custom build command for `openssl v0.7.4`
Process didn't exit successfully: `/Users/igor/Projects/tldr-pages.github.io/target-install/release/build/openssl-bade188098f75a08/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-apple-darwin")
debug=false opt-level=3
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = Some("-Qunused-arguments")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-Qunused-arguments" "-m64" "-fPIC" "-o" "/Users/igor/Projects/tldr-pages.github.io/target-install/release/build/openssl-bade188098f75a08/out/src/c_helpers.o" "-c" "src/c_helpers.c"
ExitStatus(Code(1))


command did not execute successfully, got: exit code: 1



--- stderr
src/c_helpers.c:1:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^
1 error generated.
thread '<main>' panicked at 'explicit panic', /Users/igor/.cargo/registry/src/github.com-88ac128001ac3a9a/gcc-0.3.21/src/lib.rs:772

@luthfianto
Copy link
Contributor Author

I have no OSX. Can you help me verify whether this fixes the openssl issue on El Capitan?

$ brew install openssl
$ brew link --force openssl

If that works, I'll add those to my readme. Thanks.

@igorshubovych
Copy link
Collaborator

It did not help.

This is what I have:

$ brew install openssl
Warning: openssl-1.0.2e already installed

And build fails while installing:

Compiling openssl v0.7.4

@luthfianto
Copy link
Contributor Author

@igorshubovych force link didn't working? Ok, how about?

export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include 
export DEP_OPENSSL_INCLUDE=/usr/local/opt/openssl/include

Thanks.

@bahrunnur
Copy link

Hi @igorshubovych ,

You should try all the things in: sfackler/rust-openssl#255

For me, the compile succeeded when I set this:

export C_INCLUDE_PATH=/usr/local/Cellar/openssl/1.0.2d_1/include/

@luthfianto
Copy link
Contributor Author

@bahrunnur Cool! So we also need C_INCLUDE_PATH, other than OPENSSL_INCLUDE_DIR and DEP_OPENSSL_INCLUDE.

@luthfianto
Copy link
Contributor Author

The Readme is updated at https://github.com/rilut/rust-tldr/blob/master/README.md

@igorshubovych
Copy link
Collaborator

Thank you! It works!

igorshubovych added a commit that referenced this pull request Jan 3, 2016
Add Rust client to README.md
@igorshubovych igorshubovych merged commit 27e7a86 into tldr-pages:master Jan 3, 2016
@luthfianto
Copy link
Contributor Author

Thank you @igorshubovych and @bahrunnur! 👍😹👍

@waldyrious waldyrious added documentation Issues/PRs modifying the documentation. clients Issues pertaining to a particular client or the clients as whole. labels Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clients Issues pertaining to a particular client or the clients as whole. documentation Issues/PRs modifying the documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants