Error while installing RVM on Ubuntu 18.04 - rvm

I have tried to install RVM on a fresh version of Ubuntu 18.04.
However I get the following error:
"Error running 'requirements_debian_libs_install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev',
please read /home/marko/.rvm/log/1545954319_ruby-2.5.3/package_install_gawk_g++_gcc_autoconf_automake_bison_libc6-dev_libffi-dev_libgdbm-dev_libncurses5-dev_libsqlite3-dev_libtool_libyaml-dev_make_pkg-config_sqlite3_zlib1g-dev_libgmp-dev_libreadline-dev_libssl-d.log
Requirements installation failed with status: 100."
I have also found the log file and it's contents are below:
[2018-12-28 00:45:22] requirements_debian_libs_install
requirements_debian_libs_install ()
{
__rvm_try_sudo apt-get --no-install-recommends --yes install "$#" || return $?
}
current path: /home/marko/.rvm/src/rvm
PATH=/home/marko/.nvm/versions/node/v11.6.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin
command(21): requirements_debian_libs_install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev
++ /scripts/functions/requirements/debian : requirements_debian_libs_install() 36 > __rvm_try_sudo apt-get --no-install-recommends --yes install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev
++ /scripts/functions/utility : __rvm_try_sudo() 330 > typeset -a command_to_run
++ /scripts/functions/utility : __rvm_try_sudo() 331 > typeset sudo_path sbin_path missing_paths
++ /scripts/functions/utility : __rvm_try_sudo() 332 > command_to_run=("$#")
++ /scripts/functions/utility : __rvm_try_sudo() 333 > (( UID == 0 ))
++ /scripts/functions/utility : __rvm_try_sudo() 334 > case "$rvm_autolibs_flag_number" in
++ /scripts/functions/utility : __rvm_try_sudo() 349 > is_a_function __rvm_sudo
++ /scripts/functions/support : is_a_function() 5 > typeset -f __rvm_sudo
++ /scripts/functions/utility : __rvm_try_sudo() 351 > missing_paths=
++ /scripts/functions/utility : __rvm_try_sudo() 352 > for sbin_path in /sbin /usr/sbin /usr/local/sbin
++ /scripts/functions/utility : __rvm_try_sudo() 354 > [[ -d /sbin ]]
++ /scripts/functions/utility : __rvm_try_sudo() 354 > [[ :/home/marko/.nvm/versions/node/v11.6.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin: != *\:\/\s\b\i\n\:* ]]
++ /scripts/functions/utility : __rvm_try_sudo() 352 > for sbin_path in /sbin /usr/sbin /usr/local/sbin
++ /scripts/functions/utility : __rvm_try_sudo() 354 > [[ -d /usr/sbin ]]
++ /scripts/functions/utility : __rvm_try_sudo() 354 > [[ :/home/marko/.nvm/versions/node/v11.6.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin: != *\:\/\u\s\r\/\s\b\i\n\:* ]]
++ /scripts/functions/utility : __rvm_try_sudo() 352 > for sbin_path in /sbin /usr/sbin /usr/local/sbin
++ /scripts/functions/utility : __rvm_try_sudo() 354 > [[ -d /usr/local/sbin ]]
++ /scripts/functions/utility : __rvm_try_sudo() 354 > [[ :/home/marko/.nvm/versions/node/v11.6.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin:/home/marko/.rvm/bin: != *\:\/\u\s\r\/\l\o\c\a\l\/\s\b\i\n\:* ]]
++ /scripts/functions/utility : __rvm_try_sudo() 358 > [[ -n '' ]]
++ /scripts/functions/utility : __rvm_try_sudo() 361 > command_to_run=(__rvm_sudo -p "%p password required for '$*': " "${command_to_run[#]}")
++ /scripts/functions/utility : __rvm_try_sudo() 368 > __rvm_sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev'\'': ' apt-get --no-install-recommends --yes install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev
++ /scripts/functions/support : __rvm_sudo() 357 > command sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev'\'': ' apt-get --no-install-recommends --yes install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev
++ /scripts/functions/support : __rvm_sudo() 357 > sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev'\'': ' apt-get --no-install-recommends --yes install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
autoconf : Depends: m4 (>= 1.4.13)
automake : Depends: autotools-dev (>= 20020320.1) but it is not going to be installed
bison : Depends: m4
Depends: libbison-dev (= 2:3.0.4.dfsg-1build1) but it is not going to be installed
g++ : Depends: g++-7 (>= 7.3.0-27~) but it is not going to be installed
Depends: gcc-7 (>= 7.3.0-27~) but it is not going to be installed
gawk : PreDepends: libsigsegv2 (>= 2.9) but it is not going to be installed
gcc : Depends: gcc-7 (>= 7.3.0-27~) but it is not going to be installed
libc6-dev : Depends: libc-dev-bin (= 2.27-3ubuntu1)
Depends: linux-libc-dev but it is not going to be installed
libgmp-dev : Depends: libgmpxx4ldbl (= 2:6.1.2+dfsg-2) but it is not going to be installed
libncurses5-dev : Depends: libtinfo-dev (= 6.1-1ubuntu1.18.04) but it is not going to be installed
libreadline-dev : Depends: libtinfo-dev but it is not going to be installed
libtool : Depends: autotools-dev but it is not going to be installed
pkg-config : Depends: dpkg-dev but it is not going to be installed
viber : Depends: libcurl3 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
++ /scripts/functions/utility : __rvm_try_sudo() 368 > return 100
++ /scripts/functions/requirements/debian : requirements_debian_libs_install() 36 > return 100
I have tried to run apt --fix-broken install, didn't help much.
Additionally I looked for any dependencies missing and could not find any issue on my own (I am a fresh Ubuntu user).
Does anyone know what type of issue this is and how to fix it?
Cheers

I tried many things, but none of them works.
Only thing that worked is the ruby docker container.

Found the solution at [https://github.com/rvm/rvm1
This can be closed.

Related

Rbenv: Ruby not installed Command 'ruby' not found (AWS t3a Ubuntu 18.04)

I'm trying to install Ruby via Rbenv on Ubuntu 18.04 on AWS t3a using these instructions: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04
sudo apt update
sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.6.3
rbenv global 2.6.3
However, after the rbenv global 2.6.3 part and then run ruby -v, I get
Ruby not installed Command 'ruby' not found
But when I run rbenv versions it tells me 2.6.3 is listed.
How can I install ruby?
Used screen -d -r to see the error message which was uncommon.mk:545: recipe for target 'rdoc' failed
Found the solution in https://github.com/postmodern/ruby-install/issues/223
Instead of:
rbenv install 2.6.3
Do:
RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install 2.6.3
Try
bundle exec ruby
And should be work

Getting error installing RVM in Ubuntu 16.04

Following the installation of RVM, I'm getting error listed below.
Error running 'requirements_debian_libs_install gawk libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgmp-dev libgdbm-dev libncurses5-dev automake libtool bison libffi-dev',
showing last 15 lines of /home/aldrien/.rvm/log/1486780247_ruby-2.3.3/package_install_gawk_libreadline6-dev_zlib1g-dev_libssl-dev_libyaml-dev_libsqlite3-dev_sqlite3_autoconf_libgmp-dev_libgdbm-dev_libncurses5-dev_automake_libtool_bison_libffi-dev.log
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libncurses5-dev : Depends: libtinfo5 (= 6.0+20151024-2ubuntu2) but 6.0+20160213-1ubuntu1 is to be installed
Depends: libncurses5 (= 6.0+20151024-2ubuntu2) but 6.0+20160213-1ubuntu1 is to be installed
Depends: libtinfo-dev (= 6.0+20151024-2ubuntu2) but it is not going to be installed
libreadline6-dev : Depends: libtinfo-dev but it is not going to be installed
libsqlite3-dev : Depends: libsqlite3-0 (= 3.10.2-1) but 3.11.0-1ubuntu1 is to be installed
libssl-dev : Depends: libssl1.0.0 (= 1.0.2f-2ubuntu1) but 1.0.2g-1ubuntu4.1 is to be installed
sqlite3 : Depends: libsqlite3-0 (= 3.10.2-1) but 3.11.0-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
++ /scripts/functions/utility : __rvm_try_sudo() 381 > return 100
++ /scripts/functions/requirements/ubuntu : requirements_debian_libs_install() 36 > return 100
Please help!

Installing required packages error while rvm requirements

I am installing ruby on rails in Ubuntu 14.04 using RVM.
Installed RVM successfully but when try to RUN command rvm requirements then got below error
> rvm requirements
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system............
Installing required packages: gawk, libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgmp-dev, libgdbm-dev, libncurses5-dev, automake, libtool, bison, libffi-dev.....
Error running 'requirements_debian_libs_install gawk libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgmp-dev libgdbm-dev libncurses5-dev automake libtool bison libffi-dev',
showing last 15 lines of /home/mb-pc/.rvm/log/1463399688/package_install_gawk_libreadline6-dev_zlib1g-dev_libssl-dev_libyaml-dev_libsqlite3-dev_sqlite3_autoconf_libgmp-dev_libgdbm-dev_libncurses5-dev_automake_libtool_bison_libffi-dev.log
libffi-dev : Depends: libffi6 (= 3.0.11~rc1-5) but 3.1-2 is to be installed
libgdbm-dev : Depends: libgdbm3 (= 1.8.3-10) but 1.8.3-13 is to be installed
libgmp-dev : Depends: libgmp10 (= 2:5.0.2+dfsg-2ubuntu1) but 2:6.0.0+dfsg-4build1 is to be installed
libncurses5-dev : Depends: libncurses5 (= 5.9-4) but 5.9+20140712-2ubuntu1 is to be installed
Depends: libtinfo-dev (= 5.9-4) but it is not going to be installed
Depends: ncurses-bin (= 5.9-4)
libreadline6-dev : Depends: libreadline6 (= 6.2-8) but 6.3-8ubuntu1 is to be installed
Depends: libtinfo-dev but it is not going to be installed
libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.9-2ubuntu1.2) but 3.8.6-1 is to be installed
libssl-dev : Depends: libssl1.0.0 (= 1.0.1-4ubuntu5.36) but 1.0.1f-1ubuntu9 is to be installed
sqlite3 : Depends: libsqlite3-0 (= 3.7.9-2ubuntu1.2) but 3.8.6-1 is to be installed
zlib1g-dev : Depends: zlib1g (= 1:1.2.3.4.dfsg-3ubuntu4) but 1:1.2.8.dfsg-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
+ return 100
+ return 100
Requirements installation failed with status: 100
I tried to find but not get proper solutions.
Any one have a idea in it.
Thanks

error in installing apache libtool not found

I am installing the apache steps are as followecho deb http ://ports.ubuntu.com/ubuntu-ports vivid restricted main multiverse universe >> /etc/apt/sources.list
apt-get install -y git \
openssl \
subversion \
autoconf \
libtool \
libapr \
libapr-util \
make \
libpcre3-dev \
libpcre++-dev \
libxml2-dev \
libexpat1-dev \
python
git clone https ://github.com/apache/httpd.git
cd httpd
svn co http: //svn.apache.org/repos/asf/apr/apr/trunk srclib/apr && cd srclib/apr && ./buildconf && ./build libtool && make && make install
The ./buildconf is giving error as follow
./buildconf
found apr source: srclib/apr
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: python version 2.7.9 (ok)
buildconf: autoconf version 2.69 (ok)
buildconf: libtool not found.
You need libtool version 1.4 or newer installed
to build APR from SVN.
./buildconf failed for apr
In above as i have already installed libtool. But the libttol is not found.when i say apt-get install -y libtool i get message as # apt-get install -y libtoo
apt-get install -y libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
libtool is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
W: Duplicate sources.list entry http://ports.ubuntu.com/ubuntu-ports/ vivid/restricted ppc64el Packages (/var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_vivid_restricted_binary-ppc64el_Packages)
W: Duplicate sources.list entry http://ports.ubuntu.com/ubuntu-ports/ vivid/main ppc64el Packages (/var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_vivid_main_binary-ppc64el_Packages)
W: You may want to run apt-get update to correct these problems
but when i try commands i get $libtool
bash: libtool: command not found
$man libtool
bash: man: command not found
$libttol --help
bash: libttol: command not found
$libtool --version
bash: libtool: command not found
In Ubuntu vivid, /usr/bin/libtool is provided by the libtool-bin package, not by the libtool package. Install libtool-bin:
apt-get update
apt-get install -y libtool-bin

not able to install rails3 on rvm

When trying to install rails3 using rvm, I get following error.
$ gem install rails
/data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:28:in `<top (required)>': uninitialized constant Gem::ConfigFile (NameError)
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:8:in `<top (required)>'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/gem:9:in `<main>'
Here is my rvm information
$ rvm info
ruby-1.9.2-p180:
system:
uname: "Linux alioth-linux.gslab.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (i386-redhat-linux-gnu)"
zsh: "/bin/zsh => zsh 4.3.4 (i386-redhat-linux-gnu)"
rvm:
version: "rvm 1.6.2 by Wayne E. Seguin (wayneeseguin#gmail.com) [https://rvm.beginrescueend.com/]"
ruby:
interpreter: "ruby"
version: "1.9.2p180"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 revision 30909"
full_version: "ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]"
homes:
gem: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180"
ruby: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180"
binaries:
ruby: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/ruby"
irb: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/irb"
gem: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/gem"
rake: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/rake"
environment:
PATH: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180/bin:/data/home/manish//.rvm/gems/ruby-1.9.2-p180#global/bin:/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin:/data/home/manish//.rvm/bin:/data/home/manish/ec2-api-tools-1.4.0.2/bin:/data/data/work/java/jdk1.6.0_18/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/bin:/usr/bin:/data/home/manish//bin"
GEM_HOME: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180"
GEM_PATH: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180:/data/home/manish//.rvm/gems/ruby-1.9.2-p180#global"
MY_RUBY_HOME: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180"
IRBRC: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/.irbrc"
RUBYOPT: ""
gemset: ""
Thanks for any help.
Regards,
Manish
Do
rvm rubygems remove
Which will then say:
Removing old Rubygems files...
Installing rubygems dedicated to ruby-1.9.2-p180...
After which the gem command worked.
Edit: Nevermind, seems there's more to it.
I had precisely the same error message when upgrading to Ubuntu 11.04 and found that I'd installed rvm whilst missing a few essential libraries.
I know that you aren't using the same flavour of Linux as me; the following worked for me and you may be able to find an equivalent:
$ sudo apt-get install build-essential ruby-full bison openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev libxslt-dev libxml2-dev libcurl4-openssl-dev #install the missing libraries
$ rm -r ~/.rvm* # destroy the old rvm installation
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) # install rvm again
$ rvm install 1.9.2
I had the same problem on Ubuntu 10.04.
In the RVM install script output, it indicates which Ubuntu packages are required.
For example, on my system it had:
build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
Installing those with apt-get, 'rvm implode', and re-running 'rvm install 1.9.2' fixed the problem.