Comments (5)
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.
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.
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:in
block 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:in
activate_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:in
block 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:in
activate_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:in
gem'
from /nix/store/0iazqkijlf3cc095lflwqvdlmg0mc72a-ruby-railties-3.2.6/bin/.rails-wrapped:18:in `
from nixpkgs.
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.
@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)
- 'IPsec Settings...' button greyed out in Plasma L2TP networkmanager GUI HOT 3
- Knotes does not save setting changes made in main 'configure knotes' window HOT 8
- Package request: saucectl
- Linux kernels after 6_9 have a performance regression in AMD gpu in some apps HOT 8
- python311Packages.pyopencl seems broken HOT 1
- Suspend/resume loop on GNOME with `hardware.nvidia.powerManagement` enabled HOT 1
- ruby: Could not load OpenSSL
- Update request: wandb 0.16.0 → 0.17.7
- QTPass segfaults HOT 2
- Package request: legacy-launcher
- RNS python package does not recognize dependencies HOT 3
- Build failure: vkdt HOT 1
- Package request: fastcompmgr HOT 3
- mediawiki: wfGetDB deprecated
- Update request: picom-pijulius 8.2-unstable-2024-07-01 → 8.2-unstable-2024-08-19 HOT 2
- Package request: grain
- Package request: grain-language-server
- why mirrors is not accessable from iran ? HOT 1
- 404 Error using `vimPluginsUpdater` due to `andsild/peskcolor.vim`
- Package request: QIDISlicer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixpkgs.