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

Ubuntu 18.04 (bionic) installer does not seem to work #989

Open
acabarbaye opened this issue Aug 12, 2019 · 10 comments
Open

Ubuntu 18.04 (bionic) installer does not seem to work #989

acabarbaye opened this issue Aug 12, 2019 · 10 comments
Labels
type:bug Something isn't working

Comments

@acabarbaye
Copy link
Contributor

When trying to install allure on Ubuntu 18.04, following https://docs.qameta.io/allure/#_linux, everything goes well. However when executing allure --version afterwards, the following error is occurring:

allure --version
allure: command not found

The same on Ubuntu 16.04 seems to work fine.

Expected behavior
allure should be put in the PATH at installation and behaviour should be the same for 18.04 and 16.04.

Environment (please complete the following information):

Linux *** 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@acabarbaye acabarbaye added the type:bug Something isn't working label Aug 12, 2019
@ikostan
Copy link

ikostan commented Aug 16, 2019

Hi all.

I have same issue on my Ubuntu 18.04.3 LTS. In order to install I did as following:

  1. Install allure:
sudo apt-add-repository ppa:qameta/allure
sudo apt-get update 
sudo apt-get install allure
  1. Execute allure --version in console, got following output:
    allure: command not found

As far as I understand allure should be in the PATH. However, I have no idea how to do it. Can someone please help me?

Thanks

@KristjanKruusRIA
Copy link

KristjanKruusRIA commented Mar 5, 2020

Seems like there's a problem with the repository (still) which stops it from getting added to your linux apt-get list. I fixed this by using brew. You install brew, follow all the instructions and then install allure through that. You have to manually copy the allure sh to your bin folder at the end and it works.

@moluoyu
Copy link

moluoyu commented Jul 28, 2020

I have the same issue #1114

@odemeniuk
Copy link

        curl -o allure-2.7.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.tgz
        sudo tar -zxvf allure-2.7.0.tgz -C /opt/
        sudo ln -s /opt/allure-2.7.0/bin/allure /usr/bin/allure
        rm -rf allure-2.7.0.tgz
        allure --version

@thuibr
Copy link

thuibr commented Sep 9, 2020

Ubuntu bionic has another package called allure that is getting installed instead. See the Ubuntu package search here: https://packages.ubuntu.com/bionic/allure.

What's strange is after running the following commands:

sudo apt-add-repository ppa:qameta/allure
sudo apt-get update 

I still only see Ubuntu's allure:

$ sudo apt search allure
Sorting... Done
Full Text Search... Done
allure/bionic,bionic 0.5.0.0-1 amd64
  near-future Sci-Fi roguelike and tactical squad game

Since Ubuntu is such a popular distribution, then at the very least there should be a change to the allure documentation about how to install properly for Ubuntu once we figure out how to do that.

@kmemonahmed
Copy link

        curl -o allure-2.7.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.tgz
        sudo tar -zxvf allure-2.7.0.tgz -C /opt/
        sudo ln -s /opt/allure-2.7.0/bin/allure /usr/bin/allure
        rm -rf allure-2.7.0.tgz
        allure --version

That's worked for me <3

@jackblk
Copy link

jackblk commented May 19, 2021

I wrote one for Dockerfile. Install apt-get install default-jre first for Allure dependency.

RUN ALLURE_VERSION=2.13.9 \
    && wget -qO /tmp/allure-"$ALLURE_VERSION".tgz https://github.com/allure-framework/allure2/releases/download/"$ALLURE_VERSION"/allure-"$ALLURE_VERSION".tgz \
    && tar -xf /tmp/allure-"$ALLURE_VERSION".tgz --directory=/opt/ \
    && ln -s /opt/allure-"$ALLURE_VERSION"/bin/allure /usr/bin/allure \
    && allure --version

@acabarbaye
Copy link
Contributor Author

Having a proper debian package would make the installation mentioned above much more robust and roll backs possible. Indeed, each of the steps mentioned can fail and leave the system in a broken/undertermined way

@davidmoshal
Copy link

deb file installs on Ubuntu 20 focal, see this issue for the link:
#828 (comment)

@IsQiao
Copy link

IsQiao commented Jan 18, 2022

curl -o allure-2.7.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.tgz
sudo tar -zxvf allure-2.7.0.tgz -C /opt/
sudo ln -s /opt/allure-2.7.0/bin/allure /usr/bin/allure
rm -rf allure-2.7.0.tgz
allure --version

I wrote one for Dockerfile. Install apt-get install default-jre first for Allure dependency.

RUN ALLURE_VERSION=2.13.9 \
    && wget -qO /tmp/allure-"$ALLURE_VERSION".tgz https://github.com/allure-framework/allure2/releases/download/"$ALLURE_VERSION"/allure-"$ALLURE_VERSION".tgz \
    && tar -xf /tmp/allure-"$ALLURE_VERSION".tgz --directory=/opt/ \
    && ln -s /opt/allure-"$ALLURE_VERSION"/bin/allure /usr/bin/allure \
    && allure --version

new download link:
https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants