user5154816
user5154816

Reputation:

allure: command not found on linux

I am trying to integrate allure report generation utility with py.test framework. I have installed allure on linux with following command:

$ wget https://github.com/allure-framework/allure-core/releases/download/allure-core-1.5.2/allure-commandline.tar.gz
$ tar -xvf allure-commandline.tar.gz

$ cd bin/
$ ls
allure  allure.bat

But when I try to run allure command, I see following error:

$ allure
allure: Command not found.

Can someone help me fixing this issue?

Upvotes: 5

Views: 42964

Answers (5)

Sheikh Aafaq Rashid
Sheikh Aafaq Rashid

Reputation: 199

The solution in just three steps:

  1. sudo apt-get install default-jre

  2. wget https://github.com/allure-framework/allure2/releases/download/2.18.1/allure_2.18.1-1_all.deb

  3. sudo dpkg -i allure_2.18.1-1_all.deb

Upvotes: 5

Nwawel A Iroume
Nwawel A Iroume

Reputation: 1379

  1. Get the last deb build

     wget https://github.com/allure-framework/allure2/releases/download/2.18.1/allure_2.18.1-1_all.deb
    
  2. Install it with dpkg

     sudo dpkg -i allure_2.18.1-1_all.deb
    

Upvotes: 3

Maria Clara Bezerra
Maria Clara Bezerra

Reputation: 891

Proceed with Manual Installation as described on main page for Allure documentation.

Basically:

  • Download Allure from maven repository;
  • Unzip it;
  • Copy location for /bin;
  • Add /bin location into your bash_profile or bashrc file;
  • Source bash_profile or bashrc file;

Should work.

Upvotes: -1

jb254
jb254

Reputation: 11

Download latest version of Allure in this example it is 2.9.0: https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.9.0/

open your bashrc file:

$ gedit ~/.bashrc

Add the following:

PATH="(...path_of_downloaded_and_unzipped_allure_file...../bin:${PATH})"
export PATH

Save and close terminal.

Open terminal check for version

$allure --version

should be the version you downloaded.

Upvotes: 1

Dmitry Baev
Dmitry Baev

Reputation: 2763

To run an executable (which is any file with executable permission); you just specify it by its path: path/to/allure/bin/allure or './allure'.

Also you can add bin folder to your PATH variable, and then simply run allure.

See the following question for more details: How to run a shell script on a Unix console or Mac terminal?

Upvotes: 8

Related Questions