CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Installing from svn...GenCode Error
Pages: [1]

Author Topic: Installing from svn...GenCode Error  (Read 1550 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Installing from svn...GenCode Error
March 14, 2008, 11:20:43 am
I am trying to install CiviCRM from svn in prep for the bootcamp next week. I am running into some trouble following the wiki instructions. Basically, I have followed all of the instructions, and when i go to run php GenCode.php from inside the xml directory, I get this fatal error:

Fatal error: Undefined class name 'domdocument' in /Users/emilye/svn/civicrm/xml/GenCode.php on line 386

Here is what I have done so far.
I am running Mac 10.4 with PHP 5.2 download off Mark Liyanage's site. In my php.ini file, it says it's compiled with xml. Here is the full configure command that his build comes with in php.ini:

Configure Command =>  '/SourceCache/apache_mod_php/apache_mod_php-18.8/php/configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock' '--without-pear'

I am running mySQL 5.0.

I checked everything out fine from svn, and put it in my ~/svn folder. I made a symlink file in my drupal_root/sites/default/civicrm.settings.php to my ~/svn/civicrm/civicrm.settings.php file.

I was confused by the line about editing this file with my site values. The database values are fine, but what about all of the file locations and civicrm root info? Why do I need to keep my civicrm/ directory in ~/svn instead of moving it to where i normally would drupal_root/sites/all/modules/ folder? Do I put the current paths into the settings file or put them as they will become once I move the directory structure to the right place? This piece was very confusing.

However, I'm not sure if any of this is related to the fatal error i receive when trying to run GenCode.php. But that has halted me in my tracks.

Help is appreciated! I am definitely a newbie with this, so please have patience. For instance, adding in something to my PHP build or recompiling from source is not something I know how to do at this moment.....

I will update the wiki to make things clearer to other newbies once I figure this out.
Emily

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Installing from svn...GenCode Error
March 14, 2008, 11:43:46 am

You need to compile php with XML and SOAP support. here is my configure string (I use ports on the mac)

Code: [Select]
Configure Command =>  './configure'  '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--infodir=/opt/local/share/info'
'--with-config-file-path=/opt/local/etc' '--enable-calendar' '--with-iconv=/opt/local' '--enable-exif' '--enable-ftp' '--enable-wddx' '--with-zlib=/opt/local' '--with-bz2=/opt/local' '--without-sqlite' '--without-pdo-sqlite' '--with-libxml-dir=/opt/local'
'--with-gettext=/opt/local' '--with-xml' '--with-expat-dir=/opt/local' '--with-xmlrpc' '--enable-soap' '--enable-filepro'
'--enable-bcmath' '--enable-trans-sid' '--enable-mbstring' '--enable-dbx' '--enable-dba' '--with-openssl=/opt/local'
'--with-mhash=/opt/local' '--with-mcrypt=/opt/local' '--with-xsl=/opt/local' '--with-curl=/opt/local' '--with-pcre-regex=/opt/local'
'--with-gd' '--with-jpeg-dir=/opt/local' '--with-png-dir=/opt/local' '--enable-gd-native-ttf' '--without-pear' '--with-freetype-dir=/opt/local' '--with-ldap=/usr' '--with-kerberos=/usr' '--with-iodbc=/usr' '--with-apxs2=/opt/local/apache2/bin/apxs
' '--with-mysql=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/mysql5' '--with-pdo-mysql=/opt/local/bin/mysql_config5' '--with-mysql-sock=/opt/local/var/run/mysql5/mysqld.sock' '--with-mysqli=/opt/local/bin/mysql_config5'

sorry i dont know much about mark linyage's php installer to help there. i suspect a few other folks might have run into it, so a web search will help

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Installing from svn...GenCode Error
March 15, 2008, 02:15:20 pm
Thanks -- I realized that MAMP is the easiest way to go. I highly recommend this to any other noobies!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Installing from svn...GenCode Error

This forum was archived on 2017-11-26.