Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • Requirements
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • 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
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