INSTALL.pl assumes sudo is installed but fails to install anything
Created by: eburgueno
The INSTALL.pl
script assumes sudo
is installed in the system, and warns "If this step fails... run this script again as superuser". If sudo
is not installed, the script does not install anything, and prints the success message. Running the script as root
does not actually do anything.
From a Docker container running ubuntu:bionic
(ie: docker run -ti --rm ubuntu:bionic bash
):
# apt-get update && apt-get -y install bioperl gcc git libbz2-dev liblzma-dev libmodule-build-perl make wget zlib1g-dev
# id
uid=0(root) gid=0(root) groups=0(root)
# cat /etc/issue
Ubuntu 18.04.1 LTS \n \l
# cd /opt ; wget https://github.com/Ensembl/Bio-DB-HTS/archive/2.11.tar.gz ; tar -xzf 2.11.tar.gz ; cd Bio-DB-HTS-2.11; ./INSTALL.pl
/opt/Bio-DB-HTS-2.11
*** Performing build in /tmp/FyEvcsvHL7 ***
(...)
*** Installing Bio::DB::HTS using sudo. You will be asked for your password. ***
*** If this step fails because sudo isn't installed, go back and run this script again as superuser. ***
*** Bio::DB::HTS v2.11 is now installed. ***
# ls /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Bio/DB/HTS/
ls: cannot access '/usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Bio/DB/HTS/': No such file or directory
Behaviour when sudo
is installed. Note that I am still root
, so using sudo
here is redundant.
# apt-get -y install sudo
# ./INSTALL.pl
/opt/Bio-DB-HTS-2.11
*** Performing build in /tmp/AoqhX1iJBN ***
(...)
*** Installing Bio::DB::HTS using sudo. You will be asked for your password. ***
*** If this step fails because sudo isn't installed, go back and run this script again as superuser. ***
Building Bio-DB-HTS
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/auto/Bio/DB/HTS/HTS.so
(...)
*** Bio::DB::HTS v2.11 is now installed. ***