Giter Club home page Giter Club logo

Comments (2)

EmanuelFaria avatar EmanuelFaria commented on June 29, 2024

Maybe it's because I don't know how to do either of these things? Can you help?

Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell, run:
source $HOME/.cargo/env

When I try I get this error:

manny@Mannys-MacBook-Pro ~ % $HOME/.cargo/en
zsh: no such file or directory: /Users/manny/.cargo/en

from portforwarder-rs.

pzmarzly avatar pzmarzly commented on June 29, 2024

Hi. The error means that zsh couldn't find pf binary in folders listed in $PATH.

You can see which folders zsh looks into via echo $PATH. Assuming you built portforwarder with cargo build, you can just move target/release/pf executable file to any of $PATH-listed folders.

Or, a better way would be to create a folder (e.g. .cargo, or .local/bin, or whatever name you want) and add it to $PATH by changing .zshrc. See https://coolestguidesontheplanet.com/how-to-add-to-the-shell-path-in-macos-using-terminal/

EDIT: the guide I linked to, on coolestguidesontheplanet.com, has an error - it says .zsh, while the correct file is named .zshrc

EDIT 2: The folder I mentioned in the readme text, .cargo, comes from the fact that cargo install portforwarder-rs by default installs the program to ~/.cargo/bin/pf on Linux.

from portforwarder-rs.

Related Issues (3)

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.