Lihuen
RSSRSS AtomAtom

Instalando Firefox3 en Lihuen 2

Requisitos ¿Qué necesito?

Pkg-config
Gtk>=2.10.0
Cairo
Atk
Pango
Glib >=2.12
mozilla-xulrunner190
firefox-3.0rc2
y todas las clásicas librerías dev pertenecientes a glibc,jpeg,etc

Comenzando la instalación

conseguir gtk+-2.10.0.tar.bz2, crear un directorio para gtk210 en el directorio que deseen, por ejemplo /opt

 cd /opt
 tar xjf gtk+-2.10.0.tar.bz2
 mkdir gtk2_10
 cd gtk+-2.10.0
 ./configure --prefix=/opt/gtk2_10
 make
 make install

si salió todo bien deberían tener exactamente esto:

lihuen-cca1bd:/opt/gtk210# ./configure --prefix=/opt/gtk2_10
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for native Win32... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for nm... /usr/bin/nm -B
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking whether build environment is sane... yes
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... yes
checking Whether to write dependencies into .pc files... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for indent... indent
checking for lstat... yes
checking for mkstemp... yes
checking for flockfile... yes
checking for _NL_TIME_FIRST_WEEKDAY... yes
checking for _NL_MEASUREMENT_MEASUREMENT... yes
checking for _NL_PAPER_HEIGHT... yes
checking for _NL_PAPER_WIDTH... yes
checking for sigsetjmp... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  af am ar az az_IR be bg bn br bs ca cs cy da de el 
en_CA en_GB es et  eu fa fi fr ga gl gu he hi hr hu hy ia id is it ja ka ko ku li lt lv mi mk 
ml mn mr ms nb ne  nl nn nso or pa pl t  pt_BR ro ru rw sk sl sq sr sr@Latn sr@ije sv ta te th 
tk tr tt uk ur uz uz@Latn vi wa xh yi zh_CN zh_HK zh_TW
checking for extra flags to get ANSI library prototypes... none needed
checking for the BeOS... no
checking for HP-UX... no
checking for extra flags for POSIX compliance... none needed
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.12.0... yes (version 2.12.4)
checking for bind_textdomain_codeset... (cached) yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for mallinfo... yes
checking for getresuid... yes
checking for uid_t in sys/types.h... yes
checking for fd_set... yes, found in sys/types.h
checking for wchar.h... yes
checking for wctype.h... yes
checking for iswalnum... yes
checking if iswalnum() and friends are properly defined... yes
checking for uxtheme.h... no
checking whether to build gmodulized gdk-pixbuf... yes
checking whether dynamic modules work... yes
checking for TIFFReadScanline in -ltiff... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking for jpeglib.h... yes
checking for jpeg_simple_progression in -ljpeg... yes
checking for libpng12... yes
checking pixbuf loaders to build...
checking for sys/wait.h that is POSIX.1 compatible... yes
checking return type of signal handlers... (cached) void
checking for x86 platform... yes
checking compiler support for MMX... yes
checking for XOpenDisplay... yes
checking for XextFindDisplay... yes
checking for XRenderQueryExtension... yes
checking if <X11/extensions/XIproto.h> is needed for xReply... no
checking for XConvertCase... yes
checking for XInternAtoms... yes
checking for XAddConnectionWatch... yes
checking for XkbQueryExtension... yes
checking for XShapeCombineMask... yes
checking for XSyncQueryExtension... yes
checking for X11/extensions/sync.h... yes
checking for XShmAttach... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking X11/extensions/XShm.h... yes
checking for Xinerama support on XFree86... yes
checking Pango flags... -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr /include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12   -lpangocairo-1.0 -lpango-1.0 
-lcairo  -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking ATK flags... -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -latk-1.0  -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for cups-config... no
checking cairo-pdf.h usability... yes
checking cairo-pdf.h presence... yes
checking for cairo-pdf.h... yes
checking cairo-ps.h usability... yes
checking cairo-ps.h presence... yes
checking for cairo-ps.h... yes
checking for db2html... false
configure: creating ./config.status
config.status: creating config.h.win32
config.status: creating gtk-zip.sh
config.status: creating Makefile
config.status: creating gdk-pixbuf-2.0.pc
config.status: creating gdk-2.0.pc
config.status: creating gtk+-2.0.pc
config.status: creating gtk+-unix-print-2.0.pc
config.status: creating gdk-pixbuf-2.0-uninstalled.pc
config.status: creating gdk-2.0-uninstalled.pc
config.status: creating gtk+-2.0-uninstalled.pc
config.status: creating m4macros/Makefile
config.status: creating po/Makefile.in
config.status: creating po-properties/Makefile.in
config.status: creating demos/Makefile
config.status: creating demos/gtk-demo/Makefile
config.status: creating demos/gtk-demo/geninclude.pl
config.status: creating tests/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/gdk-pixbuf/Makefile
config.status: creating docs/reference/gdk-pixbuf/version.xml
config.status: creating docs/reference/gdk/Makefile
config.status: creating docs/reference/gdk/version.xml
config.status: creating docs/reference/gtk/Makefile
config.status: creating docs/reference/gtk/version.xml
config.status: creating docs/faq/Makefile
config.status: creating docs/tools/Makefile
config.status: creating docs/tutorial/Makefile
config.status: creating gdk-pixbuf/Makefile
config.status: creating gdk-pixbuf/gdk_pixbuf.rc
config.status: creating gdk-pixbuf/gdk-pixbuf-features.h
config.status: creating gdk-pixbuf/pixops/Makefile
config.status: creating gdk/Makefile
config.status: creating gdk/x11/Makefile
config.status: creating gdk/win32/Makefile
config.status: creating gdk/win32/rc/Makefile
config.status: creating gdk/win32/rc/gdk.rc
config.status: creating gdk/linux-fb/Makefile
config.status: creating gdk/quartz/Makefile
config.status: creating gdk/directfb/Makefile
config.status: creating gtk/Makefile
config.status: creating gtk/makefile.msc
config.status: creating gtk/gtkversion.h
config.status: creating gtk/gtk-win32.rc
config.status: creating gtk/theme-bits/Makefile
config.status: creating gtk/xdgmime/Makefile
config.status: creating modules/Makefile
config.status: creating modules/input/Makefile
config.status: creating modules/engines/Makefile
config.status: creating modules/engines/pixbuf/Makefile
config.status: creating modules/engines/ms-windows/Makefile
config.status: creating modules/engines/ms-windows/Theme/Makefile
config.status: creating modules/engines/ms-windows/Theme/gtk-2.0/Makefile
config.status: creating modules/printbackends/Makefile
config.status: creating modules/printbackends/cups/Makefile
config.status: creating modules/printbackends/lpr/Makefile
config.status: creating modules/printbackends/file/Makefile
config.status: creating perf/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/gdk-pixbuf-xlib/Makefile
config.status: creating contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing gdk/gdkconfig.h commands
configuration:
        target: x11

Bueno la parte mas difícil quizá sea el poder compilar gtk2.1x sin problemas.

si todo salió perfecto debemos ahora sí descomprimir firefox

tar -xjvf firefox-3.0rc2.tar.bz2
cd firefox
ls -la 
total 16400
drwxr-xr-x 13 alumno alumno     4096 2008-06-18 22:13 .
drwxr-xr-x  5 alumno alumno     4096 2008-06-18 22:35 ..
-rw-r--r--  1 alumno alumno     2025 2008-05-29 17:21 application.ini
-rw-r--r--  1 alumno alumno        0 2008-05-29 17:19 .autoreg
-rwxr-xr-x  1 alumno alumno      981 2008-05-29 17:21 blocklist.xml
-rw-r--r--  1 alumno alumno      232 2008-05-29 17:37 browserconfig.properties
drwxr-xr-x  3 alumno alumno     4096 2008-05-29 17:37 chrome
drwxr-xr-x  2 alumno alumno     4096 2008-05-29 17:21 components
-rwxr-xr-x  1 alumno alumno    45096 2008-05-29 17:21 crashreporter
-rw-r--r--  1 alumno alumno     3896 2008-03-11 22:40 crashreporter.ini
-rw-r--r--  1 alumno alumno      644 2008-01-24 21:54 crashreporter-override.inidr
-wxr-xr-x  5 alumno alumno      4096 2008-05-29 17:37 defaults
drwxr-xr-x  3 alumno alumno     4096 2008-06-18 22:06 extensions
-rwxr-xr-x  1 alumno alumno     3949 2008-05-29 17:21 firefox
-rwxr-xr-x  1 alumno alumno     7476 2008-05-29 17:21 firefox-bin
drwxr-xr-x  2 alumno alumno     4096 2008-05-29 17:21 greprefs
drwxr-xr-x  2 alumno alumno     4096 2008-05-29 17:21 icons
-rw-r--r--  1 alumno alumno      476 2008-05-29 17:21 libfreebl3.chk
-rwxr-xr-x  1 alumno alumno   292340 2008-05-29 17:21 libfreebl3.so
-rwxr-xr-x  1 alumno alumno    30724 2008-05-29 17:21 libjemalloc.so
-rwxr-xr-x  1 alumno alumno   602680 2008-05-29 17:21 libmozjs.so
-rwxr-xr-x  1 alumno alumno   200736 2008-05-29 17:21 libnspr4.so
-rwxr-xr-x  1 alumno alumno   913844 2008-05-29 17:21 libnss3.so
-rwxr-xr-x  1 alumno alumno   304640 2008-05-29 17:21 libnssckbi.so
-rwxr-xr-x  1 alumno alumno   119588 2008-05-29 17:21 libnssdbm3.so
-rwxr-xr-x  1 alumno alumno    77564 2008-05-29 17:21 libnssutil3.so
-rwxr-xr-x  1 alumno alumno    13224 2008-05-29 17:21 libplc4.so
-rwxr-xr-x  1 alumno alumno     8684 2008-05-29 17:21 libplds4.so
-rwxr-xr-x  1 alumno alumno   125676 2008-05-29 17:21 libsmime3.so
-rw-r--r--  1 alumno alumno      476 2008-05-29 17:21 libsoftokn3.chk
-rwxr-xr-x  1 alumno alumno   181776 2008-05-29 17:21 libsoftokn3.so
-rwxr-xr-x  1 alumno alumno   397668 2008-05-29 17:21 libsqlite3.so
-rwxr-xr-x  1 alumno alumno   160036 2008-05-29 17:21 libssl3.so
-rwxr-xr-x  1 alumno alumno    11816 2008-05-29 17:21 libxpcom.so
-rwxr-xr-x  1 alumno alumno 12962304 2008-05-29 17:21 libxul.so
drwxr-xr-x  2 alumno alumno     4096 2008-05-29 17:21 modules
-rwxr-xr-x  1 alumno alumno    10772 2008-05-29 17:21 mozilla-xremote-client
-rw-r--r--  1 alumno alumno      112 2008-05-29 17:37 old-homepage-default.properties
-rw-r--r--  1 alumno alumno       41 2008-05-29 17:21 platform.ini
drwxr-xr-x  2 alumno alumno     4096 2008-05-29 17:21 plugins
-rw-r--r--  1 alumno alumno      177 2005-03-09 23:14 README.txt
-rwxr-xr-x  1 alumno alumno    15767 2008-05-29 17:19 removed-files 
drwxr-xr-x  6 alumno alumno     4096 2008-05-29 17:21 res
-rwxr-xr-x  1 alumno alumno    11410 2008-05-29 17:21 run-mozilla.sh
drwxr-xr-x  2 alumno alumno     4096 2008-05-29 17:37 searchplugins
-rw-r--r--  1 alumno alumno      825 2008-05-29 17:21 Throbber-small.gif
-rwxr-xr-x  1 alumno alumno    69672 2008-05-29 17:21 updater
-rw-r--r--  1 alumno alumno      166 2005-09-01 21:59 updater.ini
drwxr-xr-x  3 alumno alumno     4096 2008-06-18 22:06 updates

ahora creamos un script que nos proporcione acceso a firefox y exportamos la variable para gtk

#!/bin/sh
export LD_LIBRARY_PATH="/opt/gtk2_10/lib"
/opt/firefox/firefox $*

guardamos en script como firefox-run le damos permiso de ejecución:

chmod 755 firefox-run

corremos firefox3

./firefox-run
 Ante cualquier duda o inconveniente no dudes en escribirnos un email a 
 soportelihuen arroba linti.unlp.edu.ar (Sin los espacios)
 O visitar nuestros Foros.
 http://lihuen.linti.unlp.edu.ar/foros