LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Any luck installing trac / clearsilver on Fedora core 4 (FC4) ? (https://www.linuxquestions.org/questions/fedora-35/any-luck-installing-trac-clearsilver-on-fedora-core-4-fc4-355776/)

rhoekstra 08-22-2005 07:50 AM

Any luck installing trac / clearsilver on Fedora core 4 (FC4) ?
 
Has anyone had any success in installing trac on Fedora Core 4 ?

the rpm of trac is available, for instance, through the dries reposinory, but it lacks dependency satisfactory for clearsilver.

Downloading clearsilver from clearsilver.net doesn't help me either, it just won't install right. I have tried compiling clearsilver from tar.gz manually but found out it doesn't find my python libraries (??).
So I passed along --with-python=/usr/bin/python, after which it found that I had /usr/lib/python2.4/includes as the includes dir.

make install then fails to move the neo_cgi.so to the site-packages directory, so I did this manually, to see if this does the trick.

Yet no go, as I get the next error:

Code:

Oops...

Trac detected an internal error:

file is encrypted or is not a database
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 531, in cgi_start
    real_cgi_start()
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 513, in real_cgi_start
    env = open_environment()
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 190, in open_environment
    version = env.get_version()
  File "/usr/lib/python2.4/site-packages/trac/Environment.py", line 162, in get_version
    cursor.execute("SELECT value FROM system WHERE name='database_version'")
  File "/usr/src/build/539311-i386/install//usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in execute
DatabaseError: file is encrypted or is not a database

I'm currently out of options.. Am I just too early to expect that clearsilver would work on python 2.4.1 ???

Any help or suggestions appreciated.

For the record, I have python, python-devel and python_sqlite installed, any additional packages needed to get this working?

jjoganic 09-07-2005 06:16 PM

The configuration script for clearsilver version 0.10.1 does not handle python2.4. I made the following changes to the script and was able to install it. I have not tested it beyond that; however, the module neo_cgi does load when imported.

Code:

--- clearsilver-0.10.1/configure        2005-07-27 19:38:05.000000000 -0700
+++ clearsilver-0.10.1.new/configure    2005-09-07 16:10:27.000000000 -0700
@@ -6003,7 +6003,7 @@
 echo $ECHO_N "checking for python includes... $ECHO_C" >&6
  python_inc=no
  python_search_path="/neo/opt /usr/local /usr /c"
-  python_versions="2.3 2.2 2.1 2.0 1.5 22 21 20 15"
+  python_versions="2.4 2.3 2.2 2.1 2.0 1.5 22 21 20 15"
  if test $cs_cv_python_path != "no" -a -x $cs_cv_python_path; then
    python_bin=$cs_cv_python_path
    vers=`$python_bin -c "import sys; print sys.version[:3]"`
@@ -6042,7 +6042,7 @@
    PYTHON=$python_bin
    PYTHON_INC="-I$python_inc"
    PYTHON_LIB=$python_lib
-    PYTHON_SITE=`$python_bin -c "import site; print site.sitedirs[0]"`
+    PYTHON_SITE="/usr/local/lib/python2.4/site-packages"
    BUILD_WRAPPERS="$BUILD_WRAPPERS python"
  fi
 fi

Notice that I hard-coded the location of the python2.4 files. You will need to use a path appropriate for your system, most likely /usr/lib/python2.4/site-packages.

Code:

[jej@negi src]$ python2.4
Python 2.4.1 (#1, May  6 2005, 15:20:56)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import neo_cgi
>>> neo_cgi.__doc__
>>> neo_cgi.__dict__
{'CGI': <built-in function CGI>, '_C_API': <PyCObject object at 0x402743c8>, 'IgnoreEmptyFormVars': <built-in function IgnoreEmptyFormVars>, '_C_API_NUM': 4, 'exportDate': <built-in function exportDate>, '__file__': '/usr/local/lib/python2.4/site-packages/neo_cgi.so', 'update': <built-in function update>, 'urlEscape': <built-in function urlEscape>, 'htmlEscape': <built-in function htmlEscape>, 'htmlStrip': <built-in function htmlStrip>, 'CGIFinished': <class neo_cgi.CGIFinished at 0x402b1b6c>, 'urlUnescape': <built-in function urlUnescape>, '__name__': 'neo_cgi', 'cgiWrap': <built-in function cgiWrap>, '__doc__': None, 'text2html': <built-in function text2html>}
>>>

Good luck.

- John E. Joganic

rhoekstra 09-08-2005 03:20 AM

I figured that indeed... your workaround is smoother than mine.. I had altered the configure parameters to force compilation of the neo_cgi and moved it manually, this is better indeed. It resulted in the same, it got installed..

The next challenge I haven't solved is to upgrade a DB4 database from 4.2 to 4.3... upgrading of databases is not commonly available it seems... :(.. this causes trac not to work correctly..

rhoekstra 09-09-2005 04:32 AM

Okay.. db42 to db43 upgrade is mastered now.. my svn repos are functional again...

Now the sqlite has to be brought back to work for trac to work again...

Anyone have any clues?


All times are GMT -5. The time now is 10:56 AM.