Saturday, December 6, 2008

Compiling Subversion

My fedora core 5 box is running a cvs repo, however I wanted to check out subversion as well. Yum suggested an older version and since I had nothing better to do, I decided to compile the latest release.

Required Tarballs:

Neon from http://www.webdav.org/neon/
apr and apr-util from http://apr.apache.org/
subversion from http://subversion.tigris.org/

In my case I have downloaded neon-0.28.3, apr 1.3.3 and apr-util 1.3.4.

Apparently you can download apr,apr-util and neon from the subversion website as subversion-debs but I found about that after installing them.

I have used the default installation prefix /usr/local. You may wish to change that, but don't forget to change all corresponding information on the commands.

Build and install apr:

./buildconf

This will show any dependency errors in regard to subversion. Correct them before proceeding. In my case I had to install libtool.


./configure
make
make test
make install

Build and install apr-util:

./buildconf --with-apr=../apr-1.3.3/
./configure --with-apr=/usr/local/apr --with-berkeley-db=/usr
make
make test
make install

If you get an error in make regarding libtool command not found edit /usr/local/src/apr-util-1.3.4/xml/expat/lib/Makefile and change
LIBTOOL = $(SHELL) $(top_builddir)/libtool
to:
LIBTOOL = $(SHELL) libtool

Not linking against Berkeley DB will lead to a warning when compiling subversion and DBD support will not be provided.


Build and install neon:

./configure --with-ssl
make
make install

Build and install subversion:

./configure --with-apxs=/usr/sbin/apxs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/ --with-neon=/usr/local --with-ssl

Spent some time before getting that --with-neon expects a prefix to bin/neon-config.

make
make install
At this point I believe I got it installed. Now I should try to learn how to use it :-)

Tuesday, November 18, 2008

Yum - Seg Fault

If yum gives you a seg fault then try as root:

rm -f /var/lib/rpm/__db*
rpm --rebuilddb

Also I found disabling the extras repository helps:

yum --disablerepo=extras search|whatever...

Microsoft's NCSI

Default Windows Vista installations check for Internet Connectivity, a feature called Network Connectivity Status Indicator.

Vista checks http://www.msftncsi.com/ncsi.txt

Find more at http://technet.microsoft.com/en-us/library/cc766017.aspx

Wednesday, November 5, 2008

Flash player 10 installation error!

The other day I was checking out Flex and my browser prompted me for a Flash plugin update. The new version was 10.

Tried to go through the update and got the error:

Error: "You do not have sufficient disk space to complete this installation" when installing Flash Player 10 on Windows

Odd, plenty of space in my disk I thought and searched for a solution.

Apparently if your system drive (the one Windows are installed) is not labeled C then this is the cause. There is a technote for this at http://www.adobe.com/go/kb406903

However I found their solution unacceptable for my case since I did not have a removable drive at the time :-)

So here is an alternative:
  1. Get 7zip and install it.
  2. Download the flash update.
  3. Open the FlashPlayerUpdate.exe as an archive using 7zip.
  4. Extract the files NPSWF32.dll and NPSWF32_FlashUtil.exe
  5. Close all browser windows.
  6. Go to SYSTEM_DRIVE:\Program Files\Mozilla Firefox\plugins and rename the old files named as above to NPSWF32.dll.old and NPSWF32_FlashUtil.exe.old.
  7. Copy the extracted files from step 4 to SYSTEM_DRIVE:\Program Files\Mozilla Firefox\plugins
  8. Start firefox and go to http://www.adobe.com/go/tn_15507 to verify.
  9. Repeat for other browsers.
I believe that you must run the installation once and let it fail before trying this. I am pretty sure that this is the procedure I followed before getting it to work, but I may not remember correctly. Let me know if that's the case.

Sunday, November 2, 2008

First Entry

I have decided to keep notes of stuff I do from now on, online. I hope I'll come through with it.

The main reason is that many times I have set up cool stuff and did not keep a record of the procedure. The times I have had to repeat the same search path with hours of skimming through articles...

I am mostly talking about setting up software.

I hope to start with the set up of Zen Cart (an open source E-commerce project) which I did for a friend and resulted in this eshop. And then I plan an Asterisk trixbox installation to replace the hotel's PBX, that should be interesting.

Well we'll see how it goes.