Kaltura CE 2.0: PHP Fatal error: Call to undefined function curl_init() in InstallReport.class.php on line 93

8 replies [Last post]
Joined: 05/26/2010
Points: 31

Version: Kaltura CE 2.0.1

OS: OpenSUSE 11.1

PHP Config:
'./configure' '--with-gd' '--enable-mbstring' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-memcached=/usr/local/bin/memcached' '--with-curl=/usr/bin/curl'

PHP Version: 5.2.9

MySQL Version: 5.1.49

I am running through the php install.php process:

Thank you for using the Kaltura video platform installation script.
Do you want to start installation now? (Y/n)
> Y

In order to improve Kaltura CE, we would like your permission to send system data from your server to Kaltura.
This information will not be used for any purpose other than improving service quality. I agree (Y/n)
> Y

If you wish, please provide your email address so that we can
offer you future assistance (Leave empty to pass):
>

PHP Fatal error:  Call to undefined function curl_init() in /var/web/kalturaCE/lib/InstallReport.class.php on line 93

Here is my cURL info:

cURL support: enabled
cURL Information: libcurl/7.19.0 OpenSSL/0.9.8h zlib/1.2.3 libidn/1.10

Any ideas?

Joined: 05/26/2010
Points: 31

Looks like I solved my own problem.

Just used zypper to install cURL - I guess I did it wrong the first time around.

sudo zypper in curl
Joined: 01/05/2009
Points: 1697

Hi VanD14,

Can you describe your deployment and whether all is working well for you?
Can you also share how you plan on using Kaltura (purpose)?

Thanks,

Zohar

Joined: 05/26/2010
Points: 31

In reply to how I plan on using Kaltura.

I am part of a web development team at a large University in Canada. We plan on using Kaltura as our main media hub - connecting our Moodle and Drupal sites together.

Joined: 05/26/2010
Points: 31

Thanks for the reply, but all is not working for me at the moment. I am have a lot of issues with the Pentaho installation on my openSUSE 32-bit server.

Interesting information here - Pentaho PDI 3.2.0 README_LINUX.txt

If you want support for the built-in browser in Linux, please install Mozilla XULRunner.
A lot of distributions ship with this software these days, so we used this as the default configuration option.
If you want you can change the location in spoon.sh with the MOZILLA_FIVE_HOME environment variable.

x86_64 notes:

This build requires a 64 bit JVM. It will not run with a 32 bit JVM.
You can for example download Sun 64 bit 1.5 JVM for AMD64. Note that
Sun 1.4.2 JVM for AMD64 is 32 bit and cannot be used to run this build.

This appears to be a fault because I need to enable X11 on client and server when I SSH into my server.
I have not tried this yet, just a theory. Anyone else with similar experiences?

misspiggy:/usr/local/pentaho/pdi # sh spoon.sh
ERROR 09-08 08:51:15,292 - Spoon - Fatal error : org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
ERROR 09-08 08:51:15,310 - Spoon - org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
        at org.eclipse.swt.SWT.error(Unknown Source)
        at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
        at org.eclipse.swt.widgets.Display.create(Unknown Source)
        at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:378)

Exception in thread "main" java.lang.NullPointerException
        at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:420)

Joined: 01/05/2009
Points: 1697

Hi VanD14,

Thanks for the information on how you plan to use Kaltrua. You should also check out the rest of the EDU solutions on http://corp.kaltura.com/solutions/education_technology_video.

We haven't performed tests on Suse... Will it be possible for you to run on either ubuntu or centos?

Joined: 05/26/2010
Points: 31

I thought I would give it a shot on Suse anyways. Ran into some problems, I'm sure there is a way to get it working, just haven't found it yet. I am not able to use any other OS in this environment.

Joined: 01/05/2009
Points: 1697

:) I like OpenSuSe as well. We can't set enough resources for it though, other distros have a lot more users...

Keep us updated on how you progress and we'll try to help out any way possible, if changes are required to code or components, please specify and submit patches on the issue tracker.

What is the status currently? beyond issues with Pentaho, are you able to run everything else?

Joined: 05/26/2010
Points: 31

I never thought the day would come, and this may be to early to call this a success, but I have everything working now.

EDIT: The links are turning into HTML within the code block, so I took them out.

Steps I took on OpenSUSE 11.1:

sudo -s

Update all libraries with zypper up:

zypper up

Reboot:

init 6

Installed XAMPP 1.7.1:

cd /opt

wget http://cdnbakmi.kaltura.com/content/files/xampp-linux-1.7.1.patched.tar....

tar xvfz xampp-linux-1.7.1.patched.tar.gz -C /opt

Changed MySQL my.cnf:

vi /opt/lampp/etc/my.cnf
lower_case_table_names = 1
thread_stack = 262144

Create Symbolic Links:

ln -s /opt/lampp/bin/mysql /usr/bin/mysql
ln -s /opt/lampp/bin/php /usr/bin/php

Installed openJDK:
OCICLI http://software.opensuse.org/ymp/openSUSE:11.1/standard/java-1_6_0-openj...

Install cURL

zypper in curl

Install memcached

zypper in memcached

Installed Pentaho Data Integration CE 4.0

mkdir /usr/local/pentaho
cd /usr/local/pentaho

wget http://sourceforge.net/projects/pentaho/files/Data%20Integration/4.0.0-s...

tar xvfz pdi-ce-4.0.0-stable.tar.gz -C /usr/local/pentaho
mv data-integration pdi

Create etl User

sudo useradd etl -d /home/etl
cd /home/
sudo chown etl:etl etl

Disable SELinux (When needed)

Skipped Xymon

Start XAMPP

Download and extract Kaltura CE
Run php install.php
Edit httpd.conf
Edit HOSTS
Restart XAMPP or just Apache

Navigate to http://servername/start

I have posted this small little guide on my tumblr account - http://cvanderlinden.tumblr.com/post/937945964/installing-kaltura-ce-2-o...