November 2005
Monthly Archive
System Admin26 Nov 2005 12:01 am
Learning Ruby
Okay, valuable things when learning ruby:
- ri – This is like “perldoc”. Use it to view the live ruby documentation.
- irb – Interactive Ruby. This is like the perl debugger.
- IRB Tab Completion—Use this to view every available method on every object.
- gems – A packaging system and source code repository (kinda like CPAN)
System Admin15 Nov 2005 12:26 pm
CUPS - Request Entity Too Large
If you get this CUPS error, it may mean that you don’t have write permission to your CUPS spool directory (/var/spool/cups, by default).
System Admin07 Nov 2005 12:50 pm
Building GCC for Solaris 9
Here’s the build flags I used for building a 64-bit GCC for Solaris 9 (using Sun’s Forte C compiler). This uses the GNU binutils ld and as.
export GCC_EXEC_PREFIX=
export LD_LIBRARY_PATH=
cd build;
test -d gcc-4.0.2 || gtar -jxvf ../src/gcc-4.0.2.tar.bz2
test -d objdir && rm -rf objdir
mkdir objdir
cd objdir
CC="cc -xarch=v9" ../gcc-4.0.2/configure
--prefix=/apps/gcc/4.0.2
--enable-languages=c,c++
--with-ld=/apps/binutils/stable/bin/ld
--with-as=/apps/binutils/stable//bin/as
--enable-threads=posix
--disable-shared
--enable-multilib
while ! gmake -j16 bootstrap MAKE=gmake BOOT_CFLAGS="-g -O2 -m64"; do
true;
done
System Admin07 Nov 2005 12:48 pm
Ruby and OpenSSL
Since this isn’t documented anywhere in the ruby install docs that I can find… If you want your Ruby build to have openssl support, you’ll need to compile with—with-openssl-dir=, pointing at your OpenSSL build.
It seems kind of basic, but it doesn’t show up in a ./configure—help, and it’s not anywhere in the docs that I can find.