banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Hỏi về Install application trong gentoo-linux amd64  XML
  [Question]   Hỏi về Install application trong gentoo-linux amd64 26/01/2007 07:39:58 (+0700) | #1 | 38202
[Avatar]
WinDak
Researcher

Joined: 27/01/2002 11:15:00
Messages: 223
Offline
[Profile] [PM]
Em cài gentoo-linux cho việc học và nghiên cứu. Đây là thông tin về hệ thống của em
Code:
emerge --info
Portage 2.1-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/rc.d /etc/revdep-rebuild /etc/terminfo /etc/wget"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa arts avi berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal ipv6 isdnlog jpeg kde ldap libg++ mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


Bình thường cài ứng dụng gì em dùng command emerge
ví dụ : emerge netcat ( sau đó gentoo sẽ tự download các package cần thiết và install )
nhưng cái này chỉ ứng dụng được với 1 số , và thường version cài vào là version định sẵn trong config (??), nên muốn cài version nào mới hơn em phải kiếm file .ebuild về rồi xài lệnh ebuild [pathtofile] merge để cài

Lần rồi em thử cài firefox 2.0 , em coi thử requirement của nó thì thấy như thế này
* Linux kernel 2.2.14 (with glibc 2.3.2, XFree86-3.3.6, gtk+2.0, fontconfig/xft and libstdc++5) -- trong quá trình cài thì nó bị lỗi ở khâu compile (uppack -> compile ) như sau
Code:
[size=-1]x86_64-pc-linux-gnu-g++ -o nsCipherInfo.o -c -fvisibility=hidden -DNSS_ENABLE_ECC -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -I/usr/include/nss -I../../../../dist/include/nspr -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/necko -I../../../../dist/include/uriloader -I../../../../dist/include/pref -I../../../../dist/include/caps -I../../../../dist/include/dom -I../../../../dist/include/intl -I../../../../dist/include/locale -I../../../../dist/include/profile -I../../../../dist/include/windowwatcher -I../../../../dist/include/js -I../../../../dist/include/widget -I../../../../dist/include/layout -I../../../../dist/include/content -I../../../../dist/include/xpconnect -I../../../../dist/include/unicharutil -I../../../../dist/include/pipboot -I../../../../dist/include/pipnss -I../../../../dist/include -I/usr/include/nspr       -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib64/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib64/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pipe -fPIC -Wno-return-type -w -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib64/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib64/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsCipherInfo.pp nsCipherInfo.cpp
nsNSSCallbacks.h:99: error: 'SEC_HTTP_SERVER_SESSION' has not been declared
nsNSSCallbacks.h:105: error: 'SEC_HTTP_SERVER_SESSION' has not been declared
nsNSSCallbacks.h:110: error: 'SEC_HTTP_REQUEST_SESSION' has not been declared
nsNSSCallbacks.h:158: error: 'SEC_HTTP_SERVER_SESSION' has not been declared
nsNSSCallbacks.h:163: error: 'SEC_HTTP_SERVER_SESSION' has not been declared
nsNSSCallbacks.h:171: error: 'SEC_HTTP_SERVER_SESSION' has not been declared
nsNSSCallbacks.h:177: error: 'SEC_HTTP_SERVER_SESSION' has not been declared
nsNSSCallbacks.h:182: error: 'SEC_HTTP_REQUEST_SESSION' has not been declared
nsNSSCallbacks.h:189: error: 'SEC_HTTP_REQUEST_SESSION' has not been declared
nsNSSCallbacks.h:198: error: 'SEC_HTTP_REQUEST_SESSION' has not been declared
nsNSSCallbacks.h:206: error: 'SEC_HTTP_REQUEST_SESSION' has not been declared
nsNSSCallbacks.h:219: error: 'SEC_HTTP_REQUEST_SESSION' has not been declared
nsNSSCallbacks.h:225: error: 'SEC_HTTP_REQUEST_SESSION' has not been declared
nsNSSCallbacks.h:232: error: 'SEC_HttpClientFcn' does not name a type
nsNSSCallbacks.h: In static member function 'static SECStatus nsNSSHttpInterface::freeSessionFcn(int)':
nsNSSCallbacks.h:173: error: invalid static_cast from type 'int' to type 'nsNSSHttpServerSession*'
nsNSSCallbacks.h: In static member function 'static SECStatus nsNSSHttpInterface::setPostDataFcn(int, const char*, PRUint32, const char*)':
nsNSSCallbacks.h:194: error: invalid static_cast from type 'int' to type 'nsNSSHttpRequestSession*'
nsNSSCallbacks.h: In static member function 'static SECStatus nsNSSHttpInterface::addHeaderFcn(int, const char*, const char*)':
nsNSSCallbacks.h:202: error: invalid static_cast from type 'int' to type 'nsNSSHttpRequestSession*'
nsNSSCallbacks.h: In static member function 'static SECStatus nsNSSHttpInterface::trySendAndReceiveFcn(int, PRPollDesc**, PRUint16*, const char**, const char**, const char**, PRUint32*)':
nsNSSCallbacks.h:214: error: invalid static_cast from type 'int' to type 'nsNSSHttpRequestSession*'
nsNSSCallbacks.h: In static member function 'static SECStatus nsNSSHttpInterface::cancelFcn(int)':
nsNSSCallbacks.h:221: error: invalid static_cast from type 'int' to type 'nsNSSHttpRequestSession*'
nsNSSCallbacks.h: In static member function 'static SECStatus nsNSSHttpInterface::freeFcn(int)':
nsNSSCallbacks.h:227: error: invalid static_cast from type 'int' to type 'nsNSSHttpRequestSession*'
gmake[4]: *** [nsCipherInfo.o] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-2.0.0.1/work/mozilla/security/manager/ssl/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-2.0.0.1/work/mozilla/security/manager/ssl'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-2.0.0.1/work/mozilla/security/manager'
gmake[1]: *** [tier_50] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-2.0.0.1/work/mozilla'
make: *** [default] Error 2

!!! ERROR: www-client/mozilla-firefox-2.0.0.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  mozilla-firefox-2.0.0.1.ebuild, line 187:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.[/size]

(bản firefox 1.5 của em chạy tốt )

Nhìn qua thì thấy nó là lỗi khi compile nên em đã thử update bản libstdc++v3 3.3.4 (<=>libstdc++5(??)) nhưng vẫn bị lỗi như vậy...
Mong mọi người giúp đỡ
Tiện thể nếu được mong mọi người giải thích cho em rõ hơn về emerge & ebuild... nhất là có cách nào resume sau khi bị lỗi giữa chừng hay không, vì mỗi lần run nó lại bắt đầu lại từ đầu ...
Cám ơn mọi người

-- w~ --
[Up] [Print Copy]
  [Question]   Hỏi về Install application trong gentoo-linux amd64 26/01/2007 09:59:43 (+0700) | #2 | 38219
[Avatar]
mudzot
Elite Member

[Minus]    0    [Plus]
Joined: 26/06/2006 14:41:27
Messages: 76
Offline
[Profile] [PM]
nhưng cái này chỉ ứng dụng được với 1 số , và thường version cài vào là version định sẵn trong config (??), nên muốn cài version nào mới hơn em phải kiếm file .ebuild về rồi xài lệnh ebuild [pathtofile] merge để cài  

Cái này phải nói là ứng dụng với phần lớn, và version cài vào là version mà bạn có trong local portage tree ( /usr/portage ), nếu muốn cài version mới hơn bạn nên cập nhật portage tree rồi emerge như thường. Lý do là vì ebuilds trong main portage tree thường được đảm bảo "work out-of-the-box", ebuilds từ các nguồn khác thì "use at your own risk".

Để cập nhật portage tree :
Code:
emerge --sync

hoặc Code:
emerge-webrsync
nếu bạn không dùng được do firewall ko cho phép rsync

Tiện thể nếu được mong mọi người giải thích cho em rõ hơn về emerge & ebuild... nhất là có cách nào resume sau khi bị lỗi giữa chừng hay không, vì mỗi lần run nó lại bắt đầu lại từ đầu ...  

ebuild là file chứa tất cả thông tin cần thiết cho Portage để cài đặt một gói nào đó, mặc định các ebuilds nằm trong /usr/portage. Nếu bạn muốn resume lần emerge gần đây nhất thì có thể dùng
Code:
emerge --resume

Chi tiết hơn bạn có thể đọc http://www.gentoo.org/doc/en/handbook/index.xml hoặc bản tiếng Việt http://www.gentoo.org/doc/vi/handbook/index.xml
PS: tớ biết mỗi lệnh emerge
[Up] [Print Copy]
  [Question]   Hỏi về Install application trong gentoo-linux amd64 26/01/2007 11:19:47 (+0700) | #3 | 38238
[Avatar]
WinDak
Researcher

Joined: 27/01/2002 11:15:00
Messages: 223
Offline
[Profile] [PM]
Cám ơn bạn, mình biết lệnh emerge --resume, nhưng cái đó cũng chỉ resume lại 1 package trong nhiều package của 1 ứng dụng thôi. Có những package compile rất lâu, lúc được gần hết package đó rồi, nhưng lần resume vẫn compile lại từ đầu

mình cũng đã emerge sync T_T nhưng vẫn ko đủ ... chỉ có 1 ít thêm vào thôi, ff 2.0 cũng không có, phải load ebuild về đấy
-- w~ --
[Up] [Print Copy]
  [Question]   Hỏi về Install application trong gentoo-linux amd64 26/01/2007 19:08:16 (+0700) | #4 | 38269
[Avatar]
mudzot
Elite Member

[Minus]    0    [Plus]
Joined: 26/06/2006 14:41:27
Messages: 76
Offline
[Profile] [PM]
Có lẽ resume chỉ đỡ khoản download lại smilie . Trong trường hợp sync portage rồi mà chưa có ff 2.0 thì cho nó nghỉ luôn ^^, lên mozilla.org download binary về chạy cho khỏe <-- tớ cũng làm như vậy
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|