Giter Club home page Giter Club logo

Comments (5)

perestoronin avatar perestoronin commented on July 28, 2024 1

Thank you.

Later I'll test your recommendations for server based on NixOS (now it's still work on Gentoo)
But now I found temporary solution to use rvm on notebooks with NixOS for study NixOS, rails and haskell.

It's enough:

pkgs:
git
gcc
bash
curl
openssl
sqlite
patch
readline
zlib
libyaml
#iconv
libxml2
libxslt
libtool
bison
v8
nodejs

curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm pkg install zlib
rvm pkg install readline
rvm pkg install openssl
rvm install 1.9.3
// : q
rvm use 1.9.3 --default
rvm use 1.9.3@rails3 --create
rvm use 1.9.3@rails3 --default
gem install rails
gem install sqlite3-ruby -- --with-sqlite3-dir=/nix/store/sqlite // replace to actual path in store
gem install libv8

cd to_your_app
bundle install

from nixpkgs.

shlevy avatar shlevy commented on July 28, 2024

We have a few gems (including rails) packaged through nixpkgs. nix-env -i ruby-rails-3.2.6 should work (default ruby is 1.9)

from nixpkgs.

perestoronin avatar perestoronin commented on July 28, 2024

Your receipt "nix-env -i ruby-rails-3.2.6" install successful but don't work due to rails belongs to rubygems instead gem from ruby-1.9 and failed find rack.

[root@bd:~]# rails -v
/nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/dependency.rb:247:in to_specs': Could not find rack (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.7.3, json-1.5.4, minitest-2.5.1, rack-ssl-1.3.2, railties-3.2.6, rake-0.9.2.2, rdoc-3.12, rdoc-3.9.4] (Gem::LoadError) from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:772:inblock in activate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:in each' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:inactivate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:745:in activate' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:775:inblock in activate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:in each' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:inactivate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:745:in activate' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems.rb:1211:ingem'
from /nix/store/0iazqkijlf3cc095lflwqvdlmg0mc72a-ruby-railties-3.2.6/bin/.rails-wrapped:18:in `

'

from nixpkgs.

shlevy avatar shlevy commented on July 28, 2024

Oh, sorry, you'll also need to add /.nix-profile/lib/ruby/gems/1.9 to your GEM_PATH, and you might also need to have RUBYLIB=/.nix-profile/lib and RUBYOPT=rubygems

from nixpkgs.

Pitometsu avatar Pitometsu commented on July 28, 2024

@perestoronin thank you. It work for me, but also requires which and pkgconfig packages for Nix system and libyaml & ncurses for rvm pkg. And I didn't add openssl, readline and zlib to Nix packages.
UPD: but still not able to install gem nokogiri...

from nixpkgs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.