Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Not able to install solr Error: marshal data too short #23708

Closed
websiddu opened this issue Oct 28, 2013 · 7 comments
Closed

Not able to install solr Error: marshal data too short #23708

websiddu opened this issue Oct 28, 2013 · 7 comments

Comments

@websiddu
Copy link

I am getting the following error...
➜ ~ brew install solr
==> Downloading http://www.apache.org/dyn/closer.cgi?path=lucene/solr/4.5.1/solr-4.5.1.tgz
/usr/local/Library/Homebrew/build.rb:49:in dump': no marshal_dump is defined for class StringIO (TypeError) from /usr/local/Library/Homebrew/build.rb:49:inmain'
from /usr/local/Library/Homebrew/build.rb:12
from /usr/local/Library/Formula/solr.rb:23
Error: marshal data too short
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formula_installer.rb:454:in load' /usr/local/Library/Homebrew/formula_installer.rb:454:inbuild'
/usr/local/Library/Homebrew/utils.rb:221:in ignore_interrupts' /usr/local/Library/Homebrew/formula_installer.rb:449:inbuild'
/usr/local/Library/Homebrew/formula_installer.rb:212:in install' /usr/local/Library/Homebrew/cmd/install.rb:88:ininstall_formula'
/usr/local/Library/Homebrew/cmd/install.rb:31:in install' /usr/local/Library/Homebrew/cmd/install.rb:29:ineach'
/usr/local/Library/Homebrew/cmd/install.rb:29:in install' /usr/local/Library/brew.rb:95:insend'
/usr/local/Library/brew.rb:95

@jacknagel
Copy link
Contributor

Weird. I can't find anything that would be holding a reference to a StringIO.

@jacknagel
Copy link
Contributor

Do you have http_proxy set?

@websiddu
Copy link
Author

I do have http_proxy.. I am able to install postgres, git etc.. other softwares except this..

@jacknagel
Copy link
Contributor

Yeah, apache downloads are a special case in Homebrew, and certain usage of http_proxy can break it due to an apparent bug in Ruby's open-uri library, see #17811

@jacknagel
Copy link
Contributor

Here's a patch that replaces open-uri with curl: https://github.com/jacknagel/homebrew/compare/apache

@jacknagel
Copy link
Contributor

Pushed a commit that should resolve this.

@websiddu
Copy link
Author

yeah.. worked.. thanks!!

yriveiro pushed a commit to yriveiro/homebrew that referenced this issue Nov 26, 2013
Ruby's OpenURI library is somewhat broken under 1.8 and chokes on
otherwise valid values of http(s)_proxy. Use curl to get the mirror list
instead.

Fixes Homebrew#23708.
ehershey pushed a commit to ehershey/homebrew that referenced this issue Apr 4, 2014
Ruby's OpenURI library is somewhat broken under 1.8 and chokes on
otherwise valid values of http(s)_proxy. Use curl to get the mirror list
instead.

Fixes Homebrew#23708.
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants