Find the answer to your Linux question:
Results 1 to 3 of 3
I have a BF(brainf***) compiler. But in order to use it, it must be put in a directory so it can compile something and I have to type "./bf code.b". ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2014
    Posts
    2

    Installing compiler


    I have a BF(brainf***) compiler. But in order to use it, it must be put in a directory so it can compile something and I have to type "./bf code.b". How can I somehow install it so that wherever directory I am, I can just do "bf code.b"?
    Thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,392
    Put it somewhere reasonable, such as /usr/local/bin, and then alter your PATH variable to look there for executables. IE:
    Code:
    mv bf /usr/local/bin
    export PATH="${PATH}":/usr/local/bin
    In any case, I would recommend placing the export command in your user .bash_profile so whenever you login, bf can be found as you desire.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jan 2014
    Posts
    2
    Thanks a lot, it worked!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •