Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • B Bio-DB-HTS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ensembl-gh-mirror
  • Bio-DB-HTS
  • Issues
  • #81
Closed
Open
Issue created Feb 12, 2019 by Marek Szuba@mks

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. ***
Assignee
Assign to
Time tracking