I'm having a problem very similar to this question, but rather than forgetting upon reboot, rvm doesn't appear to be aware of the gemset in the first place.
I've got several gemsets created, and those directories are indeed being created and used when I $ rvm install rails -v 3.1.1 or whatever, but $ rvm gemset list produces this:
gemsets for system (found in /Network/Servers/xxx/Volumes/ServerData/Home/yyy/.rvm/gems/system)
*
I can rvm use 1.9.2#rails311, and rvm switches to that ruby, with its associated gemset; when I run $ rvm info, I get what's pasted below, but $ bundle install throws dependency errors that make it seem as though it's not finding the gemset.
Also, I have added the user account to the rvm group, and I don't get any permissions errors upon creating the gemsets, or installing gems to them, and all gems are actually getting downloaded and stored in the proper gemsets.
ruby-1.9.2-p318#rails311:
system:
uname: "Darwin www.yyy.zzz 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"
rvm:
version: "rvm 1.10.3 by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.beginrescueend.com/]"
updated: "1 day 2 hours 32 minutes 20 seconds ago"
ruby:
interpreter: "ruby"
version: "1.9.2p318"
date: "2012-02-14"
platform: "x86_64-darwin11.3.0"
patchlevel: "2012-02-14"
full_version: "ruby 1.9.2p318 (2012-02-14) [x86_64-darwin11.3.0]"
homes:
gem: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#rails311"
ruby: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318"
binaries:
ruby: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin/ruby"
irb: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin/irb"
gem: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin/gem"
rake: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#rails311/bin/rake"
environment:
PATH: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#rails311/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#global/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#rails303/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#rails313/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin"
GEM_HOME: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#rails311"
GEM_PATH: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#rails311:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318#global"
MY_RUBY_HOME: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318"
IRBRC: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/.irbrc"
RUBYOPT: ""
gemset: "rails311"
Many thanks for any insights you may have to offer.
this looks like a known RVM issue https://github.com/wayneeseguin/rvm/issues/762
I should get some time to fix it within week or two, please review the ticket and give/comment any insight you think might be important
Related
I'm using
Linux archbios 5.13.6-arch1-1 #1 SMP PREEMPT Thu, 29 Jul 2021 00:21:06 +0000 x86_64 GNU/Linux
operating system.
My problem comes after following the sublime official instructions for Arch. After these steps from sublime official docs, I just need to upgrade the sublime
sudo pacman -Syu sublime-text
I don't understand from where comes this error
sudo pacman -Syu sublime-text
:: Synchronizing package databases...
core 136.1 KiB 340 KiB/s 00:00 [##########################] 100%
extra 1566.4 KiB 3.00 MiB/s 00:01 [##########################] 100%
community 5.6 MiB 3.16 MiB/s 00:02 [##########################] 100%
multilib 149.8 KiB 1248 KiB/s 00:00 [##########################] 100%
sublime-text is up to date
:: Starting full system upgrade...
error: failed to prepare transaction (package architecture is not valid)
:: package sublime-text-4113-1-aarch64 does not have a valid architecture
I've checked /etc/pacman.conf
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[sublime-text]
Server = https://download.sublimetext.com/arch/stable/x86_64
Not quit sure, maybe problem is that when you type
pacman -Syu sublime-text // it takes default version for "sublime-text-4113-1-aarch64
but with yay and mention from where works,
yay -S aur/sublime-text-4
with this command it just works
I think I pasted the wrong version into the commandline and now have aarch64 errors also.
Removed the URL reference to aarch64 in the pacman.conf file which fixed half the problem.
Moved the var/lib/pacman/sync files into a backup directory. Re-ran the command:
sudo pacman -Syu sublime-text
FINALLY worked.
I can confirm Lord High Fixer's solution worked for me as well. I accidentally picked the wrong channel for aarch64 at first, then even after removing that channel from /etc/pacman.conf, I would continue getting the "package sublime-text-4113-1-aarch64 does not have a valid architecture" error.
I created a 'backup folder' in /var/lib/pacman/sync and moved sublime-text.db and sublime-text.db.sig into the folder. Ran pacman -Syu sublime-text and it installed correctly.
I installed RVM using the command curl -L get.rvm.io | bash -s stable and I got all listed Rubies successfully. When I am trying to install readline package using the command rvm package install readline I am getting the following status:
TEST:software sailakshmi$ rvm pkg install readline
Beware, 'rvm pkg ...' is deprecated, read about the new autolibs feature: 'rvm help autolibs'.
Checking requirements for osx.
Installing macports
..............................................................................................................................................................................................................................................................................................................................
sailakshmi password required for 'make install':
.............................................................................................................................................................................................................................................
Installing requirements for osx.
Updating system...................................................
Installing required packages: autoconf, automake, libtool, pkgconfig, libiconv, libyaml, libffi, readline, libksba, openssl, curl-ca-bundle, sqlite3, zlib, gdbm, ncurses
..............................................................................................................................................................................................................................................................................................................................................................................................................
Certificates in '/opt/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Fetching readline-5.2.tar.gz to /Users/sailakshmi/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1989k 100 1989k 0 0 107k 0 0:00:18 0:00:18 --:--:-- 119k
Extracting readline to /Users/sailakshmi/.rvm/src/readline-5.2
Applying patch '/Users/sailakshmi/.rvm/patches/readline-5.2/shobj-conf.patch'....
Prepare readline in /Users/sailakshmi/.rvm/src/readline-5.2 .............................
Error running '__rvm_autoreconf -is --force',
please read /Users/sailakshmi/.rvm/log/1384489495/readline_autoreconf.log
Configuring readline in /Users/sailakshmi/.rvm/src/readline-5.2
.......................................................................................................................................................................
Compiling readline in /Users/sailakshmi/.rvm/src/readline-5.2
...........................................................................................................................................................................................................................................
Installing readline to /Users/sailakshmi/.rvm/usr .............................................................................
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
Fetching readline-6.2.tar.gz to /Users/sailakshmi/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2224k 100 2224k 0 0 188k 0 0:00:11 0:00:11 --:--:-- 334k
Extracting readline to /Users/sailakshmi/.rvm/src/readline-6.2
Applying patch '/Users/sailakshmi/.rvm/patches/readline-6.2/patch-shobj-conf.diff'....
Prepare readline in /Users/sailakshmi/.rvm/src/readline-6.2
...............................
Error running '__rvm_autoreconf -is --force',
please read /Users/sailakshmi/.rvm/log/1384489495/readline_autoreconf.log
Configuring readline in /Users/sailakshmi/.rvm/src/readline-6.2
................................................................................................................................
Compiling readline in /Users/sailakshmi/.rvm/src/readline-6.2
......................................................................................................................................................................................................................................................................
Installing readline to /Users/sailakshmi/.rvm/usr ..................................................................
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
please help me out here Error running '__rvm_autoreconf -is --force'
you do not need to install the rvm readline package, new rvm detects your package manager and installs readline for you before installing ruby so ruby should be working fine with readling - if it does not open a bug report here => https://github.com/wayneeseguin/rvm/issues
if you want to pursue the problem with readline compilation please also open a bug including /Users/sailakshmi/.rvm/log/1384489495/readline_autoreconf.log and /Users/sailakshmi/.rvm/log/1384489495/readline_autoreconf.log - but those did not break anything installation continued without any other problems.
I am a novice having major problems with rvm. bundle install gives me the error
`ERROR: Gem bundler is not installed, run `gem install bundler` first.
even though I know it is installed, as it shows up if I run gem list -l. I suspect that's returning a list of system gems, which would suggest that rvm is definitely the problem. Trying gem install bundler again doesn't help. I've looked around at other people who have had similar problems and can't find an answer that helps whatever situation I'm in. rvm info gives me this output:
# rvm info
system:
system:
uname: "Linux box576.bluehost.com 2.6.32-20130101.60.1.bh6.x86_64 #1 SMP Tue Jan 1 22:59:09 EST 2013 x86_64 x86_64 x86_64 GNU/Linux"
system: "unknown/libc-2.12/x86_64"
bash: "/ramdisk/bin/bash => GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)"
zsh: "/usr/bin/zsh => zsh 4.3.10 (x86_64-redhat-linux-gnu)"
rvm:
version: "rvm 1.18.8 (master) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]"
updated: "22 hours 59 minutes ago"
homes:
gem: "/home7/contenw6/ruby/gems"
ruby: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194"
binaries:
ruby: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/bin/ruby"
irb: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/bin/irb"
gem: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/bin/gem"
rake: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/bin/rake"
environment:
PATH: "/usr/local/jdk/bin:/home7/contenw6/.rvm/gems/ruby-1.9.3-p194#projecta/bin:/home7/contenw6/.rvm/gems/ruby-1.9.3-p194#global/bin:/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/bin:/home7/contenw6/.rvm/bin:/home7/contenw6/perl5/bin:/usr/lib64/qt-3.3/bin:/ramdisk/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home7/contenw6/ruby/gems/bin:/home7/contenw6/bin"
GEM_HOME: "/home7/contenw6/ruby/gems"
GEM_PATH: "/home7/contenw6/ruby/gems:/usr/lib/ruby/gems/1.8"
MY_RUBY_HOME: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194"
IRBRC: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/.irbrc"
RUBYOPT: ""
gemset: ""
If I do rvm use 1.9.3-p194#projecta --default the environment section now looks like this:
environment:
PATH: "/home7/contenw6/.rvm/gems/ruby-1.9.3-p194#projecta/bin:/home7/contenw6/.rvm/gems/ruby-1.9.3-p194#global/bin:/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/bin:/home7/contenw6/.rvm/bin:/usr/local/jdk/bin:/home7/contenw6/perl5/bin:/usr/lib64/qt-3.3/bin:/ramdisk/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home7/contenw6/ruby/gems/bin:/home7/contenw6/bin"
GEM_HOME: "/home7/contenw6/.rvm/gems/ruby-1.9.3-p194#projecta"
GEM_PATH: "/home7/contenw6/.rvm/gems/ruby-1.9.3-p194#projecta:/home7/contenw6/.rvm/gems/ruby-1.9.3-p194#global"
MY_RUBY_HOME: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194"
IRBRC: "/home7/contenw6/.rvm/rubies/ruby-1.9.3-p194/.irbrc"
RUBYOPT: ""
gemset: "projecta"
but when I log in and try again it reverts back to the first output above. I've clearly screwed something up somewhere, and I have no idea how to fix my installation or where the problem is coming from. Any help would be greatly appreciated.
this looks like your previous ruby settings, check your ~/.bashrc or ~/.zshenv for any variables set that might contain the mentioned paths
if you do not find anything try checking in /etc:
grep -rn "/home7/contenw6/ruby/gems" /etc
update from comments:
sed -i'' '/GEM_HOME=/ d;' ~/.bashrc
rm ~/.gemrc
This one was helped me
cd ~/.rvm/bin
rm bundle
Then return to you project folder install a bundler gem and run bundle w/o problems
I installed ZSH today and RVM, I set up Ruby 1.9.3 to be my default. When I type rvm use 1.9.3 --default and then went into my rails project and ran rails s it worked fine. If I close my terminal and then come back to my rails project and try rails s I get the following error:
/Users/jeff/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
from /Users/jeff/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/jeff/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1229:in `gem'
from /Users/jeff/.rvm/gems/ruby-1.9.3-p125/bin/rails:18:in `<main>'
I would then type rvm use 1.9.3 and the error would go away, I did some research and found that rvm info was losing all of my rvm environment variables, here is the output of rvm info:
system:
system:
uname: "Darwin binfalse.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
zsh: "/opt/local/bin/zsh => zsh 4.3.17 (x86_64-apple-darwin11.3.0)"
rvm:
version: "rvm 1.10.3 by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.beginrescueend.com/]"
updated: "51 minutes 38 seconds ago"
homes:
gem: "not set"
ruby: "not set"
binaries:
ruby: "/Users/jeff/.rvm/rubies/ruby-1.9.3-p125/bin/ruby"
irb: "/Users/jeff/.rvm/rubies/ruby-1.9.3-p125/bin/irb"
gem: "/Users/jeff/.rvm/rubies/ruby-1.9.3-p125/bin/gem"
rake: "/Users/jeff/.rvm/gems/ruby-1.9.3-p125/bin/rake"
environment:
PATH: "/Users/jeff/.rvm/gems/ruby-1.9.3-p125/bin:/Users/jeff/.rvm/gems/ruby-1.9.3-p125#global/bin:/Users/jeff/.rvm/rubies/ruby-1.9.3-p125/bin:/Users/jeff/.rvm/bin:/opt/local/bin:/opt/local/sbin:/Library/PostgreSQL/9.0/bin:/usr/local/mysql/bin:/usr/local/mysql:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
GEM_HOME: ""
GEM_PATH: ""
MY_RUBY_HOME: ""
IRBRC: ""
RUBYOPT: ""
gemset: ""
How do I make it so my env settings are not lost? Works just fine with bash.
This is issue with loading RVM in proper place of configuration files.
You can fix it by calling:
rvm get stable --auto # OR:
rvm get head --auto
And restart computer - this is important as it forces reload of all config files.
I have a problem with Capistrano deploying to a server with RVM and gemsets
executing `deploy:assets:precompile'
* executing "cd /var/app/releases/20111229233555 && rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
*** [err ::] rake aborted!
*** [err ::] Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
*** [deploy:update_code] rolling back
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell '1.9.2#mygemset' -c 'cd /var/app/releases/20111229234715 && rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'"
This is my Capfile
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require 'rvm/capistrano'
set :rvm_bin_path, "$HOME/.rvm/bin"
set :rvm_ruby_string, '1.9.2#mygemset'
set :rvm_type, :user
load 'deploy/assets'
When I log in as the very same user which is used by Capistrano the failing command is executed without any problems.
It seems that Capistrano is using some other environment.
Here is my ~/.rvmrc file:
rvm_gemset_create_on_use_flag=1 rvm_trust_rvmrcs_flag=1
Is there a way how to check which ruby and gemset is used at the execution time?
node.js is and V8 are installed on the system, and all needed gems are in Gemfile:
here is my rvm info:
ruby:
interpreter: "ruby"
version: "1.9.2p290"
date: "2011-07-09"
platform: "x86_64-linux"
patchlevel: "2011-07-09 revision 32553"
full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]"
homes:
gem: "/home/capistrano/.rvm/gems/ruby-1.9.2-p290#mygemset"
ruby: "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290"
binaries:
ruby: "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290/bin/ruby"
irb: "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290/bin/irb"
gem: "/home/capistrano/.rvm/rubies/ruby-1.9.2-p290/bin/gem"
rake: "/home/capistrano/.rvm/gems/ruby-1.9.2-p290#mygemset/bin/rake"
setting up PATH in the deploy.rb solved this issue:
default_environment['PATH'] = "/usr/local/bin:/usr/bin:/bin:/opt/bin:$PATH"
it's a Gentoo distribution and the PATH var seems to be empty when using cap deploy, so I copied the content of server PATH and now it works
This issue went away for me when I installed nodejs (using apt-get) on my server. As I stated in this Stackoverflow answer, it's the most practical choice because you don't need to include any dependencies in your Gemfile.