Tuesday, January 19, 2010

Tora 2.1.1 on slackware

Compiling TOra 2.1.1 from source on multilib Slackware64-13.0, with cmake version 2.6.2 patched.
./configure script does not detect QScintilla even though it is installed. Cmake does, however,
cmake_policy(SET CMP0011 NEW)
in cmakelists.txt will cause it to break.
Workaround:
Change above line to
#cmake_policy(SET CMP0011 NEW) #comment the line out
Change
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
to
#CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR) #commented
Just below the line where previous change was made, add the lines from the work around link
cmake_minimum_required(VERSION 2.6.2)
if(POLICY CMP0011)
cmake_policy(SET CMP0011 OLD) # or even better, NEW
endif(POLICY CMP0011)
Save the file.
Installing for without Oracle and PostgreSQL support (I intend to use it with MySQL).
cmake -DENABLE_PGSQL=0 -DENABLE_ORACLE=0 .
make
make install

Edit: On 64 bit system, TOra looks for
/usr/lib64/libqscintilla2.so.5
However, qscintilla does not install the shared library in the path it is looking at. Solution make a symlink!
bash-3.1# ln -s /usr/lib64/qt/lib/libqscintilla2.so.5 /usr/lib64/libqscintilla2.so.5

Pinpointed the error by using (StackTrace)
strace /usr/local/bin/tora

Saturday, January 16, 2010

Installing flash on Slackware64-13.0

Flashplugin is available in extra directory, but it needs nspluginwrapper installed to work. The following steps will install to /usr/lib, so make sure you have write permissions for that directory.
1) Install nspluginwrapper
a. Make sure the target file listed below has executable permissions, and then issue the following command.
<slackware64 Dump>/extra/source/nspluginwrapper/nspluginwrapper.SlackBuild
At the end of this command, something like the following will appear. It is the name and path of the file that is ready to be installed.
Slackware package /tmp/nspluginwrapper-1.0.0-x86_64-1.txz created.
b. Now use installpkg to install the file just created. For the file mentioned above, I used the following command:
installpkg /tmp/nspluginwrapper-1.0.0-x86_64-1.txz
2) Time to install flash using same procedure as above.
a. Download and compile the package for your system. The slackbuild script will additionally handle download for you and will give you the installable package as it does normally. Reiterating, check if the slackbuild script has executable permissions.
<slackware64 Dump>/extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild
b. Use installpkg with .txz file generated on executing the above script to install the file.
installpkg /path/to/flashplayer-plugin-10.0.32.18-x86_64-1.txz

This installs flash system-wide. Seamonkey also worked.


Powered by ScribeFire.