Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th February 2010, 05:19 AM
opensourcefool Offline
Registered User
 
Join Date: Feb 2010
Location: Upstate New York
Posts: 4
linuxubuntufirefox
Question Help: Enabling sqlite in Fedora 12

I'm having a bit of trouble with a web server running Fedora 12. Apache works fine, and serves up php content without a hitch. My problem is SQLite -- I thought that it was built into php5, but support is disabled in the repo version. phpinfo shows this as part of the configure command:
Code:
'--without-sqlite' ... '--disable-pdo' ... '--without-sqlite3'
The only solution I've read anywhere is "compile php from source," but I'd like to avoid that if possible, for ease of future upgrades. Is there a way to convince php to use sqlite despite its current state? Thanks to anyone who can offer some insight.
Reply With Quote
  #2  
Old 5th February 2010, 04:22 AM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
linuxubuntufirefox
Rebuild the rpm.
Reply With Quote
  #3  
Old 11th February 2010, 02:29 PM
opensourcefool Offline
Registered User
 
Join Date: Feb 2010
Location: Upstate New York
Posts: 4
macosfirefox
Exclamation yum-builddep fails

Dies, thanks for the quick reply. I've grabbed the src.rpm for php and modified the spec file so that it will include sqlite when it is rebuilt. The problem I am now running into, however, is that when I run
Code:
sudo yum-builddep php-5.3.1-1.fc12.src.rpm
It returns
Code:
Loaded plugins: refresh-packagekit
updates/metalink                                         |  12 kB     00:00     
Traceback (most recent call last):
  File "/usr/bin/yum-builddep", line 196, in <module>
    util = YumBuildDep()
  File "/usr/bin/yum-builddep", line 64, in __init__
    self.main()
  File "/usr/bin/yum-builddep", line 93, in main
    self.get_build_deps(opts)
  File "/usr/bin/yum-builddep", line 173, in get_build_deps
    for srpm in toActOn:
UnboundLocalError: local variable 'toActOn' referenced before assignment
To me this looks like a bug with yum-builddep, but this is my first time rebuilding an rpm, so it's very possible I've botched it somewhere. Anyone with similar experiences? Perhaps someone who has gleaned the magic steps needed to eliminate these errors?
Reply With Quote
  #4  
Old 11th February 2010, 04:11 PM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
linuxubuntufirefox
Yeah, that's not anything you're doing wrong, it's just... well Fedora.

If you haven't tried "yum clean all", "yum update" yet, do that then try again. If you still get the same failure I would suggest

a.) File a bug

b.) Install any requirements/dependencies listed in the spec manually so you can get your package built

Reply With Quote
  #5  
Old 11th February 2010, 04:20 PM
opensourcefool Offline
Registered User
 
Join Date: Feb 2010
Location: Upstate New York
Posts: 4
macosfirefox
Thanks for both of your replies, I appreciate the help

Yeah, the process I've run through is

yum clean all
yum update
yum-builddep

a) yep, just filed one: https://bugzilla.redhat.com/show_bug.cgi?id=563946

b) I was going to try that, but I have one question about the binary package that will be built as a result: will it be portable to another fedora 12 system? I'm building this on a box I set up to be identical to a production machine, and want to test this new php build before deploying on the production machine.
Reply With Quote
  #6  
Old 11th February 2010, 04:37 PM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
linuxubuntufirefox
Quote:
Originally Posted by opensourcefool View Post
b) I was going to try that, but I have one question about the binary package that will be built as a result: will it be portable to another fedora 12 system? I'm building this on a box I set up to be identical to a production machine, and want to test this new php build before deploying on the production machine.
As long as they are the same arch and you don't mess too much with the dependencies listed in the spec, sure, just like any other rpm. You'll have to install it using "--nogpgcheck" but doesn't matter since you built it yourself.

If you really want to be proper you can rebuild it using mock.

http://fedoraproject.org/wiki/Projects/Mock

But that's not really necessary for a package you just rebuilt from an upstream rpm.
Reply With Quote
  #7  
Old 14th February 2010, 06:53 PM
Piscium Offline
Registered User
 
Join Date: Dec 2009
Location: Dublin,Ireland
Posts: 101
linuxfedorafirefox
I also had the same issue and was trying to fix it without success, so it's good to know that it was a bug. It has been fixed, but the update has still not been pushed downstream (it's in testing):
https://admin.fedoraproject.org/upda...DORA-2010-1728

----------
Update

I did "yum update --enablerepo=updates-testing yum-utils" to get yum-utils-1.1.26 and it has indeed fixed the problem.


Quote:
Originally Posted by opensourcefool View Post
Dies, thanks for the quick reply. I've grabbed the src.rpm for php and modified the spec file so that it will include sqlite when it is rebuilt. The problem I am now running into, however, is that when I run
Code:
sudo yum-builddep php-5.3.1-1.fc12.src.rpm
It returns
Code:
Loaded plugins: refresh-packagekit
updates/metalink                                         |  12 kB     00:00     
Traceback (most recent call last):
  File "/usr/bin/yum-builddep", line 196, in <module>
    util = YumBuildDep()
  File "/usr/bin/yum-builddep", line 64, in __init__
    self.main()
  File "/usr/bin/yum-builddep", line 93, in main
    self.get_build_deps(opts)
  File "/usr/bin/yum-builddep", line 173, in get_build_deps
    for srpm in toActOn:
UnboundLocalError: local variable 'toActOn' referenced before assignment
To me this looks like a bug with yum-builddep, but this is my first time rebuilding an rpm, so it's very possible I've botched it somewhere. Anyone with similar experiences? Perhaps someone who has gleaned the magic steps needed to eliminate these errors?

Last edited by Piscium; 14th February 2010 at 07:08 PM. Reason: update
Reply With Quote
  #8  
Old 15th February 2010, 06:02 PM
opensourcefool Offline
Registered User
 
Join Date: Feb 2010
Location: Upstate New York
Posts: 4
macosfirefox
Lightbulb

Until the update clears testing, you could try a quick workaround. This is from a python programmer I work with, no guarantees it will work (I had to take the system I was working on offline for the weekend):

toActOn is only created when srcnames is not empty:
Code:
if srcnames:
          self.setupSourceRepos()
          exact, match, unmatch = yum.packages.parsePackages(self.pkgSack.returnPackages(), srcnames, casematch=1)
          srpms += exact + match
                     if len(unmatch):
              exact, match, unmatch = yum.packages.parsePackages(self.rpmdb.returnPackages(), unmatch, casematch=1)
              if len(unmatch):
                  self.logger.error("No such package(s): %s" %
                                    ", ".join(unmatch))
                  sys.exit(1)
                             toActOn = []                for newpkg in srpms:
              toActOn.extend(_best_convert_pkg2srcpkgs(self, opts, newpkg))
          # Get the best matching srpm                   toActOn = self.bestPackagesFromList(toActOn, 'src')
try putting toActon = [] before the if statement.
Reply With Quote
  #9  
Old 20th February 2010, 09:07 AM
Reserpine's Avatar
Reserpine Offline
Registered User
 
Join Date: Feb 2010
Posts: 2
linuxfedorafirefox
@Piscium THX!
I had the same problem, while trying to make a custom kernel from fedora wiki
HTML Code:
http://fedoraproject.org/wiki/Docs/CustomKernel
with that command:
Code:
su -c 'yum-builddep kernel-<version>.src.rpm'
Your trick solved the problem:
Code:
yum update --enablerepo=updates-testing yum-utils
Reserpine
Reply With Quote
Reply

Tags
apache, php5, sqlite

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11, PHP & Sqlite - how to enable? redarrow Servers & Networking 2 18th October 2009 04:27 PM
Fedora Core 9 (FC9) Yum download primary.sqlite.bz2 problem BardiaN Installation and Live Media 3 17th April 2009 02:22 PM
ugh, Fedora 7 hangs before login and Yum SQlite error ahvi Using Fedora 1 7th June 2007 07:23 PM
using sqlite in PHP PurpleT Using Fedora 0 19th July 2005 06:47 PM


Current GMT-time: 10:00 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat