LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-22-2005, 07:50 AM   #1
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
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?
 
Old 09-07-2005, 06:16 PM   #2
jjoganic
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
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
 
Old 09-08-2005, 03:20 AM   #3
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Original Poster
Rep: Reputation: 42
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..
 
Old 09-09-2005, 04:32 AM   #4
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Original Poster
Rep: Reputation: 42
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding an ACX100 Wireless NIC Under Fedora Core 4 (FC4) dotequals Linux - Wireless Networking 2 01-12-2006 05:42 AM
Fedora Core 4 (FC4) will not shutdown properly MikeyCarter Fedora 7 11-29-2005 03:17 PM
ndiswrapper 16k kernel in fedora core 4 (fc4) haroldopaulino Linux - Hardware 1 10-01-2005 03:57 AM
ndiswrapper 16k kernel in fedora core 4 (fc4) haroldopaulino Linux - Hardware 0 09-10-2005 03:37 AM
No luck dual-booting FC4 and XP nicomachean Linux - Newbie 6 07-19-2005 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration