partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.4k stars 403 forks source link

install error #70

Closed solexious closed 12 years ago

solexious commented 13 years ago

when running the php SetupDatabase.php file I get the error:

PHP Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in /usr/share/php/Doctrine/Common/Cache/ApcCache.php on line 60

and the database details used seem to be for partdb user/database rather than partkeepr as instructed in the install file

Drachenkaetzchen commented 13 years ago

You need to have apc installed and enabled (apc.enable="1" as well as apc.enable_cli="1").

Additionally, right now we use a dump of the "original" partdb to migrate several data. You need to create a database "partdb" with the user/pw "partdb" and insert the dump in "testing/setup.sql" into that database (I just have added it to the repo, so you need to pull it again). The script then reads the old data from the "partdb" database and inserts it into the "partkeepr" database (or whichever you have configured in the config.php file).

I know this feels very much like a "hack", but an installer is on the list, but not done yet.

solexious commented 13 years ago

Great, thanks.

I'm now stuck on this error:

PHP Fatal error: Call to undefined method Doctrine\ORM\Tools\SchemaTool::dropDatabase() in /home/solexious/public_html/electriclaboratoryPartKeepr/PartKeepr/testing/SetupDatabase.php on line 80

Tried to find out what dependency i'm missing without any luck

Drachenkaetzchen commented 13 years ago

Which version of Doctrine do you have installed? I use Doctrine 2.0.5 for development.

solexious reply@reply.github.com schrieb:

Great, thanks.

I'm now stuck on this error:

PHP Fatal error: Call to undefined method Doctrine\ORM\Tools\SchemaTool::dropDatabase() in /home/solexious/public_html/electriclaboratoryPartKeepr/PartKeepr/testing/SetupDatabase.php on line 80

Tried to find out what dependency i'm missing without any luck

Reply to this email directly or view it on GitHub: https://github.com/partkeepr/PartKeepr/issues/70#issuecomment-1416248

solexious commented 13 years ago

I'm on v2.0.2, I have gotten further, but am now stuck on:

If you are sure you want to do this, type YES and hit return. YES Performing actions... Creating footprints from SetupData/footprints.php PHP Fatal error: Call to undefined method Symfony\Component\Yaml\Yaml::load() in /home/solexious/public_html/electriclaboratoryPartKeepr/PartKeepr/testing/SetupDatabase.php on line 109

Drachenkaetzchen commented 13 years ago

Regarding doctrine - how did you fix it?

Oh, I really forgot about that Yaml loader. Currently I'm using the Yaml loader from symfony, so you need Symfony2.

By the way, it's very strange that your system complains about "Undefined methods". I feel that it should say something about "Class not found" instead. Any idea what could be causing this?

Drachenkaetzchen commented 13 years ago

If you like, we can go through the installation together. Catch me on irc ( Felicitus on freenode/hackint or felicitus@jabber.ccc.de)!

Drachenkaetzchen commented 13 years ago

I'm sorry if the process is a bit confusing. For me, Yaml.php was available within the PEAR installation of doctrine (/usr/share/php/Doctrine/Symfony/Component/Yaml/Yaml.php).

Drachenkaetzchen commented 13 years ago

I've reworked the install script; it would be cool if you try it out again. You can also choose not to migrate anything (=start with a blank database). Try php SetupDatabase.php --help for commands.

Drachenkaetzchen commented 12 years ago

The installer is now done and checks for all dependencies now - closing this issue.