Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundację Dzieciom „Zdążyć z Pomocą”.
Więcej informacji na dug.net.pl/pomagamy/.

#1 2017-10-06 19:07:15

hubot
Użytkownik
Zarejestrowany: 2017-04-13

Jak ustawić Ruby 2.2 w Gentoo?

Niechcący w /etc/portage/make.conf ustawiłem RUBY_TARGETS="ruby22 ruby24" oraz wykonałem komendę eselect profile set 2 i teraz potrzebuję się wycofać z tego. Chcę mieć w systemie Ruby 2.2. Oto zawartość pliku /etc/portage/make.conf:

Kod:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
VIDEO_CARDS="nvidia"
#INPUT_DEVICES="libinput synaptics"
INPUT_DEVICES="libinput synaptics evdev mouse keyboard"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
#USE="bindist"
USE="userlocales unicode nls tools X a52 aac acl acpi alsa amd64 berkdb \
     -bindist bluetooth branding bzip2 cairo cdda cdr cli colord \
     consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds \
     emboss encode evo exif fam firefox flac fortran gdbm gif glamor \
     -gnome -gnome-keyring -gnome-online-accounts gpm gstreamer \
     gtk iconv introspection ipv6 jpeg lcms ldap libnotify \
     libsecret mad mng modules mp3 mp4 mpeg multilib nautilus ncurses nptl \
     ogg opengl openmp pam pango pcre pdf png policykit ppds \
     -pulseaudio qt3support qt4 readline sdl seccomp session spell ssl \
     startup-notification svg -systemd tcpd tiff tracker truetype \
     udev udisks upower usb vorbis wxwidgets x264 xattr xcb xml \
     xv xvid zlib savedconfig xinerama python cjk wifi hardened jack \
     startup-notification custom-cflags java postgres curl lzma socks5 \
     perl v4l fontconfig gphoto2 gsm nls odbc openal scanner threads \
     vaapi xcomposite -ruby_targets_ruby24"
#USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session spell ssl startup-notification svg tcpd tiff tools tracker truetype udev udisks unicode upower usb userlocales vorbis wxwidgets x264 xattr xcb xml xv xvid zlib"
CPU_FLAGS_X86="mmx mmxext sse sse2"
RUBY_TARGETS="ruby22"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
FEATURES="userfetch webrsync-gpg clean-logs binpkg-logs split-log"
PORT_LOGDIR="/var/log/portage"
PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl rsync://gentoo.prz.rzeszow.pl/gentoo rsync://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/"
CONFIG_PROTECT_MASK="/usr/bin/startx"
#FETCHCOMMAND="curl --socks5-hostname 127.0.0.1:9050 --retry 3 --connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
#RESUMECOMMAND="curl -C - --socks5-hostname 127.0.0.1:9050 --retry 3 --connect-timeout 60 -o \"\${DISTDIR}/\${FILE}\" \"\${URI}\""

sudo -i emerge --ask --update --deep --newuse @world:

Kod:

pecan@tux ~ $ sudo -i emerge --ask --update --deep --newuse @world

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] dev-ruby/json-1.8.6-r1 [2.1.0] USE="-doc {-test}" RUBY_TARGETS="ruby22 (-ruby23) (-ruby24)" 

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-ruby/rubygems:0

  (dev-ruby/rubygems-2.6.13:0/0::gentoo, ebuild scheduled for merge) conflicts with
    >=dev-ruby/rubygems-2.6.11[ruby_targets_ruby24] required by (virtual/rubygems-13:0/0::gentoo, installed)
                               ^^^^^^^^^^^^^^^^^^^ 


Would you like to merge these packages? [Yes/No] No

Quitting.

emerge -pvO virtual/rubygems:

Kod:

pecan@tux ~ $  emerge -pvO virtual/rubygems

These are the packages that would be merged, in order:

[ebuild     UD ] virtual/rubygems-11::gentoo [13::gentoo] RUBY_TARGETS="ruby22 (-rbx) (-ruby23) (-ruby24%*)" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

sudo eselect ruby list:

Kod:

pecan@tux ~ $ sudo eselect ruby list
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
  [2]   ruby24 (with Rubygems)

Pomoże ktoś?

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)