Thursday, January 23, 2014

Week 2: The Install is Half the Work

We left off last week with some errors installing postgres and with the intention of completing the Canvas install.

It turns out we just needed to update Homebrew ("brew update") to finish installing xmlsec1 and postgres.

Our next step was to install RubyGems and Bundler, but the version of RVM (1.9.3) that we installed included these already, so we just checked to ensure that they had made it to the right place:

wireless-10-146-97-126:~ Michelle$ which ruby
/Users/Michelle/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
wireless-10-146-97-126:~ Michelle$ which gem
/Users/Michelle/.rvm/rubies/ruby-1.9.2-p320/bin/gem
wireless-10-146-97-126:~ Michelle$ which bundler
/Users/Michelle/.rvm/gems/ruby-1.9.2-p320@global/bin/bundler
wireless-10-146-97-126:~ Michelle$ echo $GEM_HOME
/Users/Michelle/.rvm/gems/ruby-1.9.2-p320
wireless-10-146-97-126:~ Michelle$ echo $GEM_PATH
/Users/Michelle/.rvm/gems/ruby-1.9.2-p320:/Users/Michelle/.rvm/gems/ruby-1.9.2-p320@global


Looks good!

Since we're using PostgresSQL, we needed to tell canvas to ignore MySQL with :
bundle install --without mysql
However, the Bundler we installed was not compatible with the Gem version we were using, so we had to downgrade it to an older version, a solution we found here. We could then execute the command like so: "bundle _1.3.5_ install --without mysql"

Continuing with the Quick Start guide, we ran into a js:build error during Database population. It seems we just needed to install jsnode manually ("brew install node"). 

We are now nearing the final steps of installation. We decided to skip over testing database configuration and the performance tweaks as they leant little purpose to our goal, so our next hiccup was running the script/server daemon.  The error crashed our entire terminal shell with little clue as to why. 

This proved to be an excellent opportunity to consult the Canvas forum.  We were able to glean some advice from more experienced software engineers, but have not yet found a solution. 


Goals for the upcoming week:
  1. Find solution to server error (via Canvas forum, Ruby forum, and/or general Google search)
  2. Check out MathJax for front end equation display inspiration
  3. Begin planning out Python functions to:
    1. Check roots of a polynomial
    2. Ensure user input of roots is in factored form
    3. Check if polynomial is factor of another polynomial
    4. Generally process input --> get a polynomial from String, etc.

No comments:

Post a Comment