Open sarojdhakal opened 12 years ago
I am also seeing this happen on a Windows XP system (my work system). An added bonus is that 7-Zip is already installed on this machine and can be called from the command line using "7za" to bring up the help menu.
Does this happen only when installing JRuby? Does it happen with any other Ruby version?
For me, this is an unknown. I already had ruby 1.9.3p125 (2012-02-16) [i386-mingw32] installed when I installed pik via gem. This was the first version of any ruby package I had tried to install via pik.
Was reading through some of the other issues on the list to see if there might be a workaround I missed. Found this little bit in issue #100 that also talked about recursive downloading of 7zip.
"this will happen if your path does not contain the pik directory"
I ran into a similar issue (Win XP) where it wouldn't download or install 7zip. Looking through the code, I realized that pik may need 2 gems (ruby-which or zip). Installing the gems "gem install ruby-which" and "gem install zip" solved the issue.
Sorry folks I haven't replied or verified this issue, been out and now a bit busy.
Can you guys uninstall the gem version of pik and instead install the pre-release of 0.3.0?
https://github.com/vertiginous/pik/downloads
That will help me figure things out a bit better.
Thank you.
Hi Luis,
Thanks a lot for the links and binary location .
As per your suggestions installed pre-release of 0.3.0 msi package in my 64 bit Windows 7 machine , without having to suffer through the recursive download
Seems like the issue is solved in this version :+1:
Here it is the detailed output
[Installed pik 0.3.0 msi package]
C:\Users\sarojdhakal>pik install jruby ERROR: You need the 7zip utility to extract this file. Run 'pik package 7zip install'
C:\Users\sarojdhakal>pik package 7zip install INFO: Downloading: http://downloads.sourceforge.net/sevenzip/7za920.zip to: C:\Users\sarojdhakal.pik\downloads\7za920.zip
7za920.zip: 100% |ooooooooooooooooooooooooooooo| 375.8KB/375.8KB Time: 00:00:28
C:\Users\sarojdhakal>pik install jruby INFO: Installing jruby-1.5.6
INFO: Downloading: http://jruby.org.s3.amazonaws.com/downloads/1.5.6/jruby-bin- 1.5.6.zip to: C:\Users\sarojdhakal.pik\downloads\jruby-bin-1.5.6.zip
jruby-bin-1.5.6.zip: 100% |oooooooooooooooooooo| 15.0MB/ 15.0MB Time: 00:03:20 INFO: Extracting: C:\Users\sarojdhakal.pik\downloads\jruby-bin-1.5.6.zip to: C:\Users\sarojdhakal.pik\rubies\jruby-1.5.6
Extraction complete.
INFO: Adding: jruby[-1.5.6] Located at: C:\Users\sarojdhakal.pik\rubies\jruby-1.5.6\bin
all set !!!
Thanks, Saroj
same issue D:\pik_for_ruby>pik in ruby 1.8.7 \ Downloading: http://rubyforge.org/frs/download.php/76525/ruby-1.8.7-p371-i386-mingw32.7z to: C:\Users\zen.pik\downloads\ruby-1.8.7-p371-i386-mingw32.7z
ruby-1.8.7-p371-i386-min...7z: 100% |oooooooooo| 5.1MB/ 5.1MB Time: 00:06:16
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes| y \ Downloading: http://downloads.sourceforge.net/sevenzip/7za465.zip to: C:\Users\zen.pik\downloads\7za465.zip
7za465.zip: 100% |ooooooooooooooooooooooooooooo| 352.5KB/352.5KB Time: 00:00:08
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes| y \ Downloading: http://downloads.sourceforge.net/sevenzip/7za465.zip to: C:\Users\zen.pik\downloads\7za465.zip
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes| y \ Downloading: http://downloads.sourceforge.net/sevenzip/7za465.zip to: C:\Users\zen.pik\downloads\7za465.zip
thanks @luislavena MSI installation has worked
Recursive 7zip Dowload Installing Jruby
Environment:
Windows 7
Steps to Reproduce issue
install pik install jruby using command pik install jruby
following prompt will be seen
C:\Ruby193\pik>pik install jruby \ Downloading: http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview2/jrub y-bin-1.7.0.preview2.zip to: C:\Users\imagine.pik\downloads\jruby-bin-1.7.0.preview2.zip
jruby-bin-1.7.0.preview2.zip: 100% |ooooooooooo| 16.7MB/ 16.7MB Time: 00:08:12
Now it askes for confirming 7zip download which is again a zip package:
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes| yes \ Downloading: http://downloads.sourceforge.net/sevenzip/7za465.zip to: C:\Users\imagine.pik\downloads\7za465.zip
7za465.zip: 100% |ooooooooooooooooooooooooooooo| 352.5KB/352.5KB Time: 00:02:04
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes| yes \ Downloading: http://downloads.sourceforge.net/sevenzip/7za465.zip to: C:\Users\imagine.pik\downloads\7za465.zip
7za465.zip: 100% |ooooooooooooooooooooooooooooo| 352.5KB/352.5KB Time: 00:01:10
C:\Ruby193\pik>pik install jruby \ Downloading: http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview2/jru y-bin-1.7.0.preview2.zip to: C:\Users\imagine.pik\downloads\jruby-bin-1.7.0.preview2.zip
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes| no
Quitting...
C:\Ruby193\pik>pik install jruby \ Downloading: http://jruby.org.s3.amazonaws.com/downloads/1.7.0.preview2/jru y-bin-1.7.0.preview2.zip to: C:\Users\imagine.pik\downloads\jruby-bin-1.7.0.preview2.zip
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes| yes \ Downloading: http://downloads.sourceforge.net/sevenzip/7za465.zip to: C:\Users\imagine.pik\downloads\7za465.zip
7za465.zip: 100% |ooooooooooooooooooooooooooooo| 352.5KB/352.5KB Time: 00:01:18
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes|
\ Downloading: http://downloads.sourceforge.net/sevenzip/7za465.zip to: C:\Users\imagine.pik\downloads\7za465.zip
7za465.zip: 100% |ooooooooooooooooooooooooooooo| 352.5KB/352.5KB Time: 00:01:23
You need the 7zip utility to extract this file. Would you like me to download it? (yes/no) |yes|