Keep in mind that either nmatrix OR rb-gsl are NOT NECESSARY for using statsample. They are just required for an optional speed up.
Statsample also works with rb-gsl.
Install dependencies:
bundle install
And run the test suite (should be all green):
bundle exec rake test
If you have problems installing nmatrix, please consult the nmatrix installation wiki or the mailing list.