sunlightlabs / opencongress

An open website for opening Congress.
http://www.opencongress.org
GNU General Public License v3.0
48 stars 16 forks source link

Installation Issues #462

Open justcheck opened 10 years ago

justcheck commented 10 years ago

Hello,

I'm running into some issues during the opencongress installation process. I'm installing locally on my computer, and my Linux distribution details are below:

OS: Xubuntu Release: 13.10 Codename: saucy

I've been following the installation guide found here: https://github.com/opencongress/opencongress

The first issue occurs during dependancy installation: E: Unable to locate package gcj-4.4-jre E: Couldn't find any package by regex 'gcj-4.4-jre'

The second error occurs during bundle install. Nokogiri refuses to install for some reason, and I can't find a guide to solve the issue. I'll post the bundle install results below. If you have any idea how to solve this issue I would greatly appreciate some help:

Your Gemfile lists the gem autotest (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of just one of them later. Fetching source index from http://rubygems.org/ Using rake 0.8.7 Using Platform 0.4.0 Using open4 1.0.1 Using POpen4 0.1.4 Using RedCloth 4.2.9 Using ZenTest 4.5.0 Using abstract 1.0.0 Using activesupport 3.0.19 Using builder 2.1.2 Using i18n 0.5.0 Using activemodel 3.0.19 Using erubis 2.6.6 Using rack 1.2.6 Using rack-mount 0.6.14 Using rack-test 0.5.7 Using tzinfo 0.3.35 Using actionpack 3.0.19 Using mime-types 1.19 Using polyglot 0.3.3 Using treetop 1.4.12 Using mail 2.2.19 Using actionmailer 3.0.19 Using arel 2.0.10 Using activerecord 3.0.19 Using activeresource 3.0.19 Using bundler 1.7.3 Using json 1.5.4 Using rdoc 3.12 Using thor 0.14.6 Using railties 3.0.19 Using rails 3.0.19 Using acts-as-taggable-on 2.3.3 from git://github.com/mbleigh/acts-as-taggable-on.git (at master) Using addressable 2.2.6 Using airbrake 3.0.9 Using autotest 4.4.6 Using bluecloth 2.1.0 Using highline 1.6.2 Using net-ssh 2.1.4 Using net-scp 1.0.4 Using net-sftp 2.0.5 Using net-ssh-gateway 1.1.0 Using capistrano 2.6.0 Using capistrano-ext 1.2.1 Using celerity 0.8.9 Using culerity 0.2.15

Your user account isn't allowed to install to the system Rubygems. You can cancel this installation and run:

bundle install --path vendor/bundle

to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to Rubygems using sudo.

Password:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9.1 extconf.rb 

extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config. checking for libxml/parser.h... yes checking for libxslt/xslt.h... yes checking for libexslt/exslt.h... yes checking for iconv_open() in iconv.h... yes checking for xmlParseDoc() in -lxml2... yes checking for xsltParseStylesheetDoc() in -lxslt... yes checking for exsltFuncRegister() in -lexslt... yes checking for xmlHasFeature()... yes checking for xmlFirstElementChild()... yes checking for xmlRelaxNGSetParserStructuredErrors()... yes checking for xmlRelaxNGSetParserStructuredErrors()... yes checking for xmlRelaxNGSetValidStructuredErrors()... yes checking for xmlSchemaSetValidStructuredErrors()... yes checking for xmlSchemaSetParserStructuredErrors()... yes creating Makefile

make compiling xml_sax_parser.c compiling xml_entity_reference.c compiling xml_processing_instruction.c compiling xml_element_content.c compiling xml_sax_push_parser.c compiling xml_libxml2_hacks.c compiling nokogiri.c nokogiri.c: In function ‘ruby_strdup’: nokogiri.c:43:31: warning: conversion to ‘size_t’ from ‘long int’ may change the sign of the result [-Wsign-conversion] char _result = ruby_xmalloc((ssize_t) (len + 1)); ^ compiling xslt_stylesheet.c compiling xml_io.c xml_io.c: In function ‘io_read_callback’: xml_io.c:28:3: warning: conversion to ‘int’ from ‘size_t’ may alter its value [-Wconversion] return safe_len; ^ compiling xml_dtd.c compiling xml_entity_decl.c compiling html_document.c compiling html_entity_lookup.c compiling html_element_description.c In file included from /usr/include/ruby-1.9.1/ruby.h:32:0, from ./nokogiri.h:31, from ./html_element_description.h:4, from html_element_description.c:1: html_element_description.c: In function ‘get_description’: html_element_description.c:249:40: warning: cast discards ‘attribute((const))’ qualifier from pointer target type [-Wcast-qual] return Data_Wrap_Struct(klass, 0, 0, (void )description); ^ /usr/include/ruby-1.9.1/ruby/ruby.h:818:35: note: in definition of macro ‘Data_Wrap_Struct’ rb_data_object_alloc((klass),(sval),(RUBY_DATA_FUNC)(mark),(RUBY_DATA_FUNC)(free)) ^ compiling xml_attribute_decl.c compiling xml_reader.c compiling xml_syntax_error.c compiling xml_xpath_context.c xml_xpath_context.c: In function ‘xpath_generic_exception_handler’: xml_xpath_context.c:184:3: error: format not a string literal and no format arguments [-Werror=format-security] rb_raise(rb_eRuntimeError, message); ^ cc1: some warnings being treated as errors make: _* [xml_xpath_context.o] Error 1

Gem files will remain installed in /tmp/bundler20140920-2184-pcz4ve/nokogiri-1.5.0/gems/nokogiri-1.5.0 for inspection. Results logged to /tmp/bundler20140920-2184-pcz4ve/nokogiri-1.5.0/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out An error occurred while installing nokogiri (1.5.0), and Bundler cannot continue. Make sure that gem install nokogiri -v '1.5.0' succeeds before bundling.

plantfansam commented 10 years ago

@pollsy, sorry for the troubles!

Here's the deal: the OpenCongress repository ecosystem is pretty confusing right now (we're working on it!) -- the installation instructions you're looking for are at https://github.com/sunlightlabs/opencongress/blob/master/README.md. You also want to make sure that you're working in the sunlightlabs/opencongress codebase, not opencongress/opencongress.

Going to close this issue for now, but feel free to reopen or create a new one if you run into trouble.

justcheck commented 10 years ago

Thank you for the response! I'm currently trying to install sunlightlabs/opencongress using the vagrant box method, and I'm running into a problem where I run the command "bundle install". I'm getting "Could not locate Gemfile" as a response. Any idea why I'm getting that repsonse?

--- Installation process is linked below ---

user@chrubuntu:~$ vagrant box list There are no installed boxes! Use vagrant box add to add some. user@chrubuntu:~$ vagrant box add opencongress http://vagrant.sunlightfoundation.com/opencongress/opencongress.box Downloading or copying the box... Extracting box...te: 1959k/s, Estimated time remaining: --:--:--) Successfully added box 'opencongress' with provider 'virtualbox'! user@chrubuntu:~$ vagrant init opencongress A Vagrantfile has been placed in this directory. You are now ready to vagrant up your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on vagrantup.com for more information on using Vagrant. user@chrubuntu:~$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Resuming suspended VM... [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! user@chrubuntu:~$ vagrant ssh Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

Welcome to your Vagrant-built virtual machine. Last login: Wed Sep 24 18:12:36 2014 from 10.0.2.2 vagrant@precise64:~$ ls postinstall.sh vagrant@precise64:~$ gem install bundler Successfully installed bundler-1.7.3 1 gem installed vagrant@precise64:~$ rbenv rehash vagrant@precise64:~$ bundle install Could not locate Gemfile vagrant@precise64:~$