logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.
Question
fparadell
fparadell
Offline
0
Hi all,

I recently started using yocto , and do not know much how to install packages.

I need to install packages like php5 , lighttpd , sqlite3 , mplayer ...

I have read installing packages with zypper ( http://linuxg.net/how-to-install-find-and-remove-packages-with-zypper/ )

Apparently my yocto OS has already installed the sqlite3 and lighttpd , but I try to install php5 and gives me the following error:

# sudo zypper install php5
Loading repository data ...
Reading installed packages ...
' php5 ' not found in package names . Trying capabilities .
No provider of ' php5 ' found .
Resolving package dependencies ...

Guess I'll have to add any repository to install the packages I need. Is that it? Can anyone tell me which repos I need to add ?

Currently I have only isse repository :

# zypper repos
# | Alias ​​| Name | Enabled | Refresh
- + ---------- + ---------- + --------- + --------
1 | isee.biz | isee.biz | Yes | No

Thanks in advance,

Fran
Responses (5)
  • Accepted Answer

    Wednesday, February 12 2014, 10:23 AM - #permalink
    0
    Hi Fran,

    We have added php package to isee.biz repository. Refresh your local repository to download php package:
    - zypper refresh

    Cheers!
    The reply is currently minimized Show
  • Accepted Answer

    fparadell
    fparadell
    Offline
    Wednesday, February 12 2014, 02:24 PM - #permalink
    0
    Hi Pau,

    I refresh my repository, and then I try to install php5, and php5 still not available:
    # zypper in php5
    Loading repository data...
    Reading installed packages...
    'php5' not found in package names. Trying capabilities.
    No provider of 'php5' found.
    Resolving package dependencies...

    Then I try whith:
    # zypper in php
    Loading repository data...
    Reading installed packages...
    Resolving package dependencies...

    The following NEW package is going to be installed:
    php

    1 new package to install.
    Overall download size: 42.0 KiB. After the operation, additional 106.0 KiB will be used.
    Continue? [y/n/?] (y): y
    Retrieving package php-5.3.6-r1.0.armv7a (1/1), 42.0 KiB (106.0 KiB unpacked)
    Retrieving: php-5.3.6-r1.0.armv7a.rpm [done]
    Installing: php-5.3.6-r1.0 [done]

    Now I need to enable php with yocto lighttpd. To do this I need to enable the mod-fastcgi in /etc/lighttpd.conf

    I uncomment the line:
    server.modules = (
    # "mod_rewrite",
    # "mod_redirect",
    # "mod_alias",
    "mod_access",
    # "mod_cml",
    # "mod_trigger_b4_dl",
    # "mod_auth",
    # "mod_status",
    # "mod_setenv",
    "mod_fastcgi",
    # "mod_proxy",
    # "mod_simple_vhost",
    # "mod_evhost",
    #

    and I uncomment the fastcgi.server
    #### fastcgi module
    ## read fastcgi.txt for more info
    ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
    fastcgi.server = ( ".php" =>
    ( "localhost" =>
    (
    "socket" => "/tmp/php-fastcgi.socket",
    "bin-path" => "/usr/local/bin/php"
    )
    )
    )

    At this point I have two problems:

    1.- How can I install/enable mod_fastcgi for yocto lighttpd?
    # /etc/init.d/lighttpd restart
    Restarting Lighttpd Web Server: stopped /usr/sbin/lighttpd (pid 2121)
    2014-02-12 13:14:42: (plugin.c.169) dlopen() failed for: /usr/lib/mod_fastcgi.so /usr/lib/mod_fastcgi.so: cannot open shared object file: No such file or directory
    2014-02-12 13:14:42: (server.c.657) loading plugins finally failed
    lighttpd.

    2.- How can I configure the bin-path for the php available in your repository? I don't find no path to the php bin...
    Before install the php package available in the repository, y find all the "*php*" files and found this:
    :/# find -name "*php*"
    ./usr/share/mime/application/x-php.xml
    ./usr/share/augeas/lenses/dist/tests/test_phpvars.aug
    ./usr/share/augeas/lenses/dist/tests/test_php.aug
    ./usr/share/augeas/lenses/dist/phpvars.aug
    ./usr/share/augeas/lenses/dist/php.aug

    After install your php package I found this:
    :/# find -name "*php*"
    ./usr/lib/php
    ./usr/lib/php/XML/Util.php
    ./usr/lib/php/peclcmd.php
    ./usr/lib/php/PEAR5.php
    ./usr/lib/php/Structures/Graph/Manipulator/TopologicalSorter.php
    ./usr/lib/php/Structures/Graph/Manipulator/AcyclicTest.php
    ./usr/lib/php/Structures/Graph/Node.php
    ./usr/lib/php/Structures/Graph.php
    ./usr/share/mime/application/x-php.xml
    ./usr/share/augeas/lenses/dist/tests/test_phpvars.aug
    ./usr/share/augeas/lenses/dist/tests/test_php.aug
    ./usr/share/augeas/lenses/dist/phpvars.aug
    ./usr/share/augeas/lenses/dist/php.aug

    Thanks in advance,

    Fran
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, February 13 2014, 10:14 AM - #permalink
    0
    Hi Fran,

    I am not a php guru but i think that you missed to install some dependencies: php-cgi, php-cli and lighttpd-module-fastcgi.

    Cheers!
    The reply is currently minimized Show
  • Accepted Answer

    fparadell
    fparadell
    Offline
    Thursday, February 13 2014, 02:18 PM - #permalink
    0
    You're right!

    I install this dependencies, and configure the lighttpd.conf to use the bin /usr/bin/php-cgi and it works!!

    At this moment we need to install some new packages that aren't available in your isee.biz repository, specifically now need to install aterisk and mplayer packages.

    How can we install this packages? Can you add it to your repository like you have done with php package, or is there any other way to install it?

    Thank you very much!!!

    Fran.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 14 2014, 10:02 AM - #permalink
    0
    Hi Fran,

    mplayer and asterisk packages are not available now into supported layers (meta, meta-yocto and meta-isee). You will need to compile them.

    However, mplayer is available at meta-openembedded layer, you can build this package following this guide.

    Cheers!
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat