Running sshd on gentoo (1 comment)
I got this new vserver and I decided to use it as Gentoo buildslave. Just after installing the image I had no working ssh. Reading the log I stumbled across this:
Jun 17 14:46:17 vadmin234 sshd: Server listening on :: port 22. Jun 17 14:46:17 vadmin234 sshd: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. Jun 17 14:46:23 vadmin234 sshd: Received signal 15; terminating.
Looks like sshd binds port 22 on :: and tries to bind then the same port on 0.0.0.0 which obviously can't work. This is overall a bit cumbersome, because I don't have any ipv6 address for this machine.
A solution is either to remove ipv6 support from the kernel or even better say sshd which address it should use:
Installing Ruby 19 isn't an easy task, the (hard)masking stuff in Gentoo is really a nightmare. The API of Ruby changed a lot from 18 to 19, therefore you can easily say it's not compatible. Until Gentoo has a better version management for slotted Ruby is basically, it's just masked and up to the user installing it if needed and live with the consequences.
There exists the fancy RUBY_TARGETS mechanism, which is intended to allow packages be build for different flavors like , , and (Ruby Enterprise Edition). According to the manpage and the nice guys in #gentoo-ruby on Freenode you just need to add
RUBY_TARGETS="ruby19" in your /etc/make.conf - it doesn't.
After a bit of talk and testing various possible
solutions suggestions I found it: You need to override the mask of the flag for which is and this can be done in /etc/portage/profile/use.mask.
To make long story short just do this:
Numbers: on /off
1 mkdir -p /etc/portage/profile 2 echo "dev-lang/ruby ~x86" >> /etc/portage/package.keywords 3 echo "dev-lang/eselect-ruby ~x86" >> /etc/portage/package.keywords 4 echo "dev-lang/ruby" >> /etc/portage/package.unmask 5 echo "dev-lang/eselect-ruby" >> /etc/portage/package.unmask 6 echo "-ruby_targets_ruby19" >> /etc/portage/profile/use.mask 7 echo 'RUBY_TARGETS="ruby19"' >> /etc/make.conf
In case you also need rake: