need help in installation of vufind

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

need help in installation of vufind

Kratika Sharma Project Associate
Hello

I am trying to install VuFind by reading the documentation given on your page. I am installing it on cent os 7. After downloading the file of vufind, I got stuck on this point:

cd /tmp
tar xzvf vufind-4.0.tar.gz
sudo mv vufind-4.0 /usr/local/vufind

cd /usr/local/vufind
php install.php

when i tried running php install.php, it gives me error:
PHP parse error: sysntax error, unexpected 'class'(T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or'{' ,'$' in /usr/local/vufind/vendor/zendframework/zend-form/autoload/formElementManagerPolyfill.php on line 12

I don't know why this error is coming and how to resolve it. Help will be appreciated.

Thank you in anticipation.
Kratika Sharma


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: need help in installation of vufind

Günter Hipler

Hi Kratika,

seems you are missing required php - libraries, related to this error mbstring (from my point of view)

Below you can find a list of all the modules we installed for Ubuntu 16.04 with PHP version 7 (should be more or less the same for versions < 7.x)

Best wishes, Günter


root@sb-uvf6:~# apt list --installed | grep php

libapache2-mod-php/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
libapache2-mod-php7.0/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-common/xenial,xenial,now 1:35ubuntu6 all [installed,automatic]
php-curl/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-gd/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-imagick/xenial,now 3.4.0~rc6-1ubuntu3 amd64 [installed]
php-intl/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-ldap/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-mbstring/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-mcrypt/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-memcache/xenial,now 3.0.9~20151130.fdbd46b-2 amd64 [installed]
php-mysql/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-odbc/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-pear/xenial,xenial,now 1:1.10.1+submodules+notgz-6 all [installed]
php-pgsql/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-pspell/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-readline/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php-xml/xenial,xenial,now 1:7.0+35ubuntu6 all [installed]
php7.0/xenial-updates,xenial-updates,now 7.0.18-0ubuntu0.16.04.1 all [installed,automatic]
php7.0-cli/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-common/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-curl/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-fpm/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-gd/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-intl/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-json/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-ldap/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-mbstring/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-mcrypt/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-mysql/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-odbc/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-opcache/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-pgsql/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-pspell/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-readline/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
php7.0-xml/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
root@sb-uvf6:~#


On 18.07.2017 08:29, Kratika Sharma Project Associate wrote:
Hello

I am trying to install VuFind by reading the documentation given on your page. I am installing it on cent os 7. After downloading the file of vufind, I got stuck on this point:

cd /tmp
tar xzvf vufind-4.0.tar.gz
sudo mv vufind-4.0 /usr/local/vufind

cd /usr/local/vufind
php install.php

when i tried running php install.php, it gives me error:
PHP parse error: sysntax error, unexpected 'class'(T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or'{' ,'$' in /usr/local/vufind/vendor/zendframework/zend-form/autoload/formElementManagerPolyfill.php on line 12

I don't know why this error is coming and how to resolve it. Help will be appreciated.

Thank you in anticipation.
Kratika Sharma



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech

-- 
Günter Hipler 

Universität Basel | Universitätsbibliothek | Projekt swissbib

Schönbeinstrasse 18-20 | 4056 Basel | Schweiz

Tel +41 61 207 31 12 | Fax +41 61 207 31 03

E-Mail [hidden email] | http://www.ub.unibas.ch | https://www.swissbib.ch

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: need help in installation of vufind

Demian Katz
In reply to this post by Kratika Sharma Project Associate

What version of PHP are you running? VuFind 4.0 requires PHP 5.6 or newer, and CentOS may give you PHP 5.5 by default. You can find out with:

 

php -v

 

If you are on PHP 5.5, your option is to either upgrade to a newer version of PHP, or install an earlier version of VuFind (3.1.4 should work).

 

- Demian

 

From: Kratika Sharma Project Associate [mailto:[hidden email]]
Sent: Tuesday, July 18, 2017 2:30 AM
To: [hidden email]
Subject: [VuFind-Tech] need help in installation of vufind

 

Hello

 

I am trying to install VuFind by reading the documentation given on your page. I am installing it on cent os 7. After downloading the file of vufind, I got stuck on this point:

 

cd /tmp

tar xzvf vufind-4.0.tar.gz

sudo mv vufind-4.0 /usr/local/vufind

 

cd /usr/local/vufind

php install.php

 

when i tried running php install.php, it gives me error:

PHP parse error: sysntax error, unexpected 'class'(T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or'{' ,'$' in /usr/local/vufind/vendor/zendframework/zend-form/autoload/formElementManagerPolyfill.php on line 12

 

I don't know why this error is coming and how to resolve it. Help will be appreciated.

 

Thank you in anticipation.

Kratika Sharma

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Loading...