LoopPerfect / buckaroo

The decentralized package manager for C++ and friends 🏝️
https://buckaroo.pm
MIT License
933 stars 33 forks source link

Issues installing buck from portable package. #384

Closed oraqlle closed 2 years ago

oraqlle commented 2 years ago

I had some issues installing buck on my system.

Description

I was following the portable install for buckaroo and buck on linux. Buckaroo installed fine but after downloading buck and running

chmod +x ./buck

I tried the next command

./buck

Expected Behavior

I expected it to have a similar output as running the

./buckaroo

command earlier but received and error.

Actual Behaviour

The error is as follows:

$ ./buck
This does not appear to be the root of a Buck project. Please 'cd'
to the root of your project before running buck. If this really is
the root of your project, run
'touch .buckconfig'
and then re-run your buck command.
Traceback (most recent call last):
  File "/home/user/.local/share/warp/packages/buck/bin/buck/programs/buck.py", line 241, in <module>
  File "/home/user/.local/share/warp/packages/buck/bin/buck/programs/buck.py", line 219, in main
  File "/home/user/.local/share/warp/packages/buck/bin/buck/programs/buck_project.py", line 149, in from_current_dir
    raise NoBuckConfigFoundException()
NoBuckConfigFoundException: This does not appear to be the root of a Buck project. Please 'cd'
to the root of your project before running buck. If this really is
the root of your project, run
'touch .buckconfig'
and then re-run your buck command.

Possible Fix

Is this because buck needs to be run from a project directory. I should also note that buckaroo and buck were installed within the directory ~/lib not in a project directory. I'm not sure if this is correct practice or if it should be installed locally to a project. Regards.

Your Environment

oraqlle commented 2 years ago

Sorry everyone. The issue was that I wasn't in a buck project directory.