Hide Forgot
Description of problem: Installing mantis on a fresh machine fails, because php-mysql is not installed. Version-Release number of selected component (if applicable): mantis-1.1.8-5.fc14.noarch.rpm How reproducible: Always Steps to Reproduce: 1. Install fresh system without mysql 2. 'yum -y install mantis' 3. Go to https://localhost/mantis Actual results: PHP Fatal error: Call to undefined function mysql_connect() in /usr/share/mantis/core/adodb/drivers/adodb-mysql.inc.php on line 364 Expected results: It should just work Additional info: I'll have to add mysql-server to the system as well, but that's not a mandatory requirement for mantis.
I am afraid this package can't "just work". For this reason I added in the package's description: When the package has finished installing, you will need to perform some additional configuration steps; these are described in: /usr/share/doc/mantis-1.1.8/README.Fedora In particular, Mantis can work with other database backends (most notably, PostgreSQL) so adding a dependency on php-mysql is going to be reported as a bug by those using PostgreSQL (or any other supported backend) Does it make sense?
After submitting the bug report, that did occur to me, and I wasn't sure I should have submitted a bug. But (and I'm not familiar enough with dependencies to be sure) is it possible to have a mantis-mysql, mantis-postgresql, or other virtual package that will bring in the various pieces? Or can mantis have multiple, alternate dependencies, so you can say "this package needs either mysql, postgresql, or xyz", or "this package needs a database"? Basically, I'm installing this bug tracker for my wife, and she's a bit disappointed with me because it's taking too long, ie. it's not installed and running with one command. I can't tell if I should blame unrealistic user expectations of linux, or unrealistic developer expectations of users. Although, if she's been conditioned by years of windows experience, are her expectations unrealistic? Thanks.
Yes, I could add some virtual package to bring in all the required pieces for a given backend; however, you will still need to perform some post install steps. Please tell your wife it's not a Windows-easy vs Linux-hard issues here, because you are trying to install a client/server application requiring a web server and a database server, each piece requiring some level of configuration. It's not hard to do but definitely not something I'd expect to just work after installation. Please note, mantis also work on windows; if you try attempting the installation there, you'll realize the same pieces (apache or something similar, mysql, php, etc) are needed, but will be definitely harder to do. Potentially, this can serve hundred of users, thousand of bugs, dozen projects; if you needs are for "personal" use, you may want to look at other task tracker tools; for instance, I liked getting things gnome (package is named "gtg") which is a desktop app, ready to use after install.