openbudgets / rudolf

rudolf is the stepbrother of babbage for RDF datasets
1 stars 0 forks source link

Rudolf Local installation #4

Closed fathoni closed 8 years ago

fathoni commented 8 years ago

Hi @larjohn, during installation of rudolf on my local machine, I could not manage to run the composer install successfully. I've run PHP7 on Apache, Laravel has also been installed. Do you think that the autoload.php file should be reconfigured?

Here is the error that I've got:

PHP Warning:  require(/var/www/html/rudolf/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/rudolf/bootstrap/autoload.php on line 17
PHP Fatal error:  require(): Failed opening required '/var/www/html/rudolf/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/rudolf/bootstrap/autoload.php on line 17
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error

  [RuntimeException]                                                                                                                  
  Error Output: PHP Warning:  require(/var/www/html/rudolf/bootstrap/../vendor/autoload.php): failed to open stream: No such file or  
   directory in /var/www/html/rudolf/bootstrap/autoload.php on line 17                                                                
  PHP Fatal error:  require(): Failed opening required '/var/www/html/rudolf/bootstrap/../vendor/autoload.php' (include_path='.:/usr  
  /share/php') in /var/www/html/rudolf/bootstrap/autoload.php on line 17                                                              

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] `[<packages>]...
larjohn commented 8 years ago

@fathoni can you please provide more information on where did you run the command? Which directory?

fathoni commented 8 years ago

The directory is in /var/www/html/rudolf with the following permission:

fathoni@notebook1 /var/www/html/rudolf $ ls -l
total 396
drwxr-sr-x 11 fathoni www-data   4096 Jun  8 15:42 app
-rw-r--r--  1 fathoni www-data   1646 Jun  8 15:42 artisan
drwxr-sr-x  3 fathoni www-data   4096 Jun  8 15:42 bootstrap
-rw-r--r--  1 fathoni www-data    536 Jun  8 15:42 bower.json
-rw-r--r--  1 fathoni www-data   1700 Jun  8 15:42 composer.json
drwxr-sr-x  2 fathoni www-data   4096 Jun  8 15:42 config
drwxr-sr-x  5 fathoni www-data   4096 Jun  8 15:42 database
-rw-r--r--  1 fathoni www-data    503 Jun  8 15:42 gulpfile.js
-rw-r--r--  1 fathoni www-data 339024 Jun  8 15:42 _ide_helper.php
-rw-r--r--  1 fathoni www-data    159 Jun  8 15:42 package.json
-rw-r--r--  1 fathoni www-data    870 Jun  8 15:42 phpunit.xml
drwxr-sr-x  3 fathoni www-data   4096 Jun  8 15:42 public
-rw-r--r--  1 fathoni www-data   1648 Jun  8 15:42 readme.md
drwxr-sr-x  5 fathoni www-data   4096 Jun  8 15:42 resources
-rw-r--r--  1 fathoni www-data    567 Jun  8 15:42 server.php
drwxr-sr-x  5 fathoni www-data   4096 Jun  8 15:42 storage
drwxr-sr-x  2 fathoni www-data   4096 Jun  8 15:42 tests
larjohn commented 8 years ago

Nice, let me have a look on an Ubuntu instance and come back until tonight.

larjohn commented 8 years ago

You can replace composer install with composer install --no-scripts I have updated the readme.

fathoni commented 8 years ago

I got a particular problem with php_mbstring extension, since it did not come with my php7 installation. Perhaps it is worth noting in the readme that the extension is required, and can be installed in ubuntu using sudo apt-get install php-mbstring php7.0-mbstring ? Thanks for your assistance!