RVM ERRORS - unable to clone RVM repository - ruby-on-rails

I am trying to install RVM, but I get this error.
Last login: Thu Mar 31 15:41:06 on ttys000
G-Mac-5:~ macbookpro$ bash < <(curl -B http://rvm.beginrescueend.com/install/rvm)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5335 100 5335 0 0 7948 0 --:--:-- --:--:-- --:--:-- 14113
bash: line 114: git: command not found
bash: line 115: git: command not found
ERROR: Unable to clone the RVM repository, attempted both git:// and https://
Do I need to install GIT first? And whats the diffrents between zsh and bash?

There really should be better diagnostic messages when something about the installation fails. Phusion Passenger is an example of how to do it right, where not only are rigorous tests done prior to the installation attempt, but any problems are explained with cut-and-pasteable examples on how to fix them. They're even customized to the particular OS you're using, differentiating between apt-get and yum among other things.
If you're missing git, you won't get very far with rvm.

Related

jenkins fails to install 2.89.4-1.1 version on Centos 7.4

I am trying to install jenkins 2.89.4-1.1 version of jenkins on a Centos 7.4 server but my installation fails with the below error,
j
enkins-2.89.4-1.1.noarch.rpm FAILED
http://pkg.jenkins.io/redhat/jenkins-2.89.4-1.1.noarch.rpm: [Errno 14] HTTP Error 404 - Not Found 0% [ ] 0.0 B/s | 0 B --:--:-- ETA
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Error downloading packages:
jenkins-2.89.4-1.1.noarch: [Errno 256] No more mirrors to try.
The steps that i have tried so far
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins-2.89.4-1.1
Can anyone suggest what to do next.
i looked out for the solutions in the website mentioned in the error but they dont seem to work
I am facing similar kind of error, the simplest solution is
# yum clean all
# rm -rf /var/cache/yum
OR
You can download the rpm manually
wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.89.4-1.1.noarch.rpm
rpm -ivh jenkins-2.89.4-1.1.noarch.rpm
The main cause of this issue: Due to the corruption of the local machine cache, try to clear cache on the system

capistrano 2 : `tar' could not be found in the path on the local host

I am using Capistrano version 2 and trying to deploy code on server.
but when i enter cap deploy:check command i am getting below error.
* executing "which tar"
servers: ["53.79.454.474"]
[53.79.454.474] executing command
command finished in 1088ms
The following dependencies failed. Please check them and try again:
--> `tar' could not be found in the path on the local host
I also try to install tar on my remote ubuntu machine, but still getting the same error.
sudo apt-get install tar
Reading package lists... Done
Building dependency tree
Reading state information... Done
tar is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I don't know why i am getting this error. please help
Thanks,
This error appears because the machine that holds your repo does not have tar installed (windows). You should have no problems when moving your :repo_url to your production server or any other server with a linux distribution.
** Edit
Before moving the repo, you could try to set the :copy_compression as :zip in your production.rb
if that fails (it might), and you absolutely want/need to stick to microsoft, there will be no way around installing cygwin with tar enabled on the machine your repo lies on and adding cygwin to your PATH variable.
Check this google discussion for more information.

Codeship deployment error installing ruby?

Not sure what it means or why it's happening, any advice appreciated massively.
arning! PATH is not properly set up, '/home/rof/.rvm/gems/ruby-1.9.3-p327/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p327'.
Unknown ruby string (do not know how to handle): ruby-1.9.3p545.
ruby-1.9.3p545 is not installed - installing.
Unknown ruby string (do not know how to handle): ruby-1.9.3p545.
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.10/x86_64/ruby-1.9.3p545.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Unknown ruby string (do not know how to handle): ruby-1.9.3p545.
Installing Ruby from source to: /home/rof/.rvm/rubies/ruby-1.9.3p545, this may take a while depending on your cpu(s)...
Unknown ruby string (do not know how to handle): ruby-1.9.3p545.
ruby-1.9.3p545 - #downloading ruby-1.9.3p545, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
The requested url does not exist(22): 'http://cache.ruby-lang.org/pub/ruby/./ruby-1.9.3p545.tar.bz2'
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/./ruby-1.9.3p545.tar.bz2
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/./ruby-1.9.3p545.tar.bz2
No fallback URL could be found, try increasing timeout with:
echo "export rvm_max_time_flag=20" >> ~/.rvmrc
There has been an error fetching the ruby interpreter. Halting the installation.
Gemset '' does not exist, 'rvm ruby-1.9.3p545 do rvm gemset create ' first, or append '--create'.
Seems like nothing it working to get my app launched on heroku - I was launching it through github push.
The app can be found # www.github.com/cjshort/devonite
Thanks.
I'm one of the founders of Codeship.
It looks like you're using a Ruby version that is currently not supported on Codeship. Could you send us an in-app support request with more info so we can take a look at your build directly.

Error installing Grails with GVM - Curl issue

I am having trouble installing Grails via GVM. I installed GVM via the instructions on GVM's website, and it appears it was installed correctly - restarting the terminal and running gvm help produces a list of possible commands. However, when I go to install Grails (or Groovy), I get the following output in the terminal:
$ gvm install grails
Downloading: grails 2.3.2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (1) Protocol [http not supported or disabled in libcurl
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/neilpoulin/.gvm/archives/grails- 2.3.2.zip or
/Users/neilpoulin/.gvm/archives/grails-2.3.2.zip.zip, and cannot find /Users/neilpoulin/.gvm/archives/grails-2.3.2.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.
I looked to make sure zip, unzip and curl were found:
$ which zip
/usr/bin/zip
$ which unzip
/usr/bin/unzip
$ which curl
/usr/bin/curl
Prior to this, the only thing I have done with Grails/Groovy is to execute the example project include on the Grails website - http://grails.org/learn > step 2.
What am I missing here? is there some configuration of libcurl I need to change? Any help is much appreciated!
On investigation, it seems to be down to inconsistent versions (and behaviour) of MongoDB between our dev and prod environments. This was resulting in our prod server returning an array of urls on the download request (ie [theurl]). This was working perfectly on our dev environment, but started serving the array when the release was promoted to prod. Hope this is making sense!
I was having this problem persist— for me, it turned out that there were corrupt candidates caches by gvm during a previously failed install.
gvm flush candidates
set things back to rights, here.

PDF Generation hangs using PDFKit and wkhtmotopdf

I'm on OSX Lion using wkhtmtopdf that came with homebrew (0.9.9) and all of the sudden I cannot generate PDFs anymore. When I tack .pdf on the end of a URL, the wkhtmltopdf process fires up, but the process never completes. I suspect it's an issue with wkhtmltopdf because the process is not completing when I run it via the cli either. When I issue the following command, I get a test.pdf file, but the process never finishes, even though it says "done".
Is there something I can do to force the process to complete?
curl google.com | wkhtmltopdf - test.pdf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 219 100 219 0 0 1685 0 --:--:-- --:--:-- --:--:-- 5475
Loading page (1/2)
Printing pages (2/2)
Done
Turns out it had nothing to do with the cli and it was actually due to Jammit running in development. Disabling Jammit fixes the PDFkit hanging issue.

Resources