alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
278 stars 49 forks source link

ERROR: alr get unsuccessful #177

Closed Lucretia closed 4 years ago

Lucretia commented 5 years ago

Just installed alire to try it out, any attempt to alr get hello or any other package results in the above error.

mosteo commented 5 years ago

Can you give some details about how did you install it and on which platform?

Lucretia commented 5 years ago

I did what is on the main readme:

curl https://raw.githubusercontent.com/alire-project/alr/master/install/alr-bootstrap.sh -o ./alr-bootstrap.sh
bash ./alr-bootstrap.sh

I broke it up because I wanted to look at the script first.

alr get hello
alr get hangman
alr get -c hello

All give the same error.

Also, why do you installed alr to another directory when there is a bin dir in $HOME/.config/alire? Surely setting the PATH to that would just be better?

mosteo commented 5 years ago

That's because I prefer not to touch users' paths, so I delegated to them where to place the final executable. There are other technical reasons related with how in the past alr recompiled itself, which it no longer does.

Back to your problem, alr and the index are undergoing many breaking changes at present and the stable branch is quite old. If you want to test something more recent, I would suggest to clone it from master (with subrepos), compile manually using the alr_dev.gpr, and use the built binary.

Meanwhile I will check the installer, that should have worked for you anyway. Still, what's your platform?

Lucretia commented 5 years ago

Also, forgot:

Linux rogue 5.2.11-gentoo+ #3 SMP PREEMPT Sat Sep 7 15:09:07 BST 2019 x86_64 AMD FX(tm)-8350 Eight-Core Processor AuthenticAMD GNU/Linux

mosteo commented 5 years ago

Being on gentoo you will for sure experience problems with any crate that relies on native packages. This is known and in the pipeline. But for pure Ada things, like hello, hangman and many others you should find no problems.

Lucretia commented 5 years ago

Ok, changed your script to grab master, works this time. Lots of:

Warning: Unable to detect distribution

messages.

Lucretia commented 5 years ago

Why are you naming packages like rust?

Fabien-Chouteau commented 5 years ago

Why are you naming packages like rust?

Because package is already used in the Ada vocabulary.

mosteo commented 5 years ago

I'll say more: package is used in Ada and project is used in GNAT.

Lucretia commented 5 years ago

I would say package is an all encompassing word which explains what the whole is.

mosteo commented 4 years ago

These issues were fixed by #204