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 Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

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

  hubot - Użytkownik

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}\""

[b]sudo -i emerge --ask --update --deep --newuse @world[/b]:

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.

[b]emerge -pvO virtual/rubygems[/b]:

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.

[b]sudo eselect ruby list[/b]:

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
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)

[ Generated in 0.010 seconds, 9 queries executed ]

Informacje debugowania

Time (s) Query
0.00021 SET CHARSET latin2
0.00008 SET NAMES latin2
0.00170 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.137.173.98' WHERE u.id=1
0.00138 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.137.173.98', 1732355149)
0.00068 SELECT * FROM punbb_online WHERE logged<1732354849
0.00082 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=29951 AND t.moved_to IS NULL
0.00008 SELECT search_for, replace_with FROM punbb_censoring
0.00118 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=29951 ORDER BY p.id LIMIT 0,25
0.00133 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=29951
Total query time: 0.00746 s