Results 1 to 5 of 5

Thread: I need Ur help, Thank U~

  1. #1
    Shawn Zhang is offline Registered User
    Name: Shawn Zhang
    Organization: Golden Eagle software
    Project: eosEye, a desktop security monitor system
    Join Date
    Jul 2008
    Posts
    11

    Unhappy I need Ur help, Thank U~

    Firstly,I should introduce my environment:
    linux 5
    apache 2.2.4
    php 5.2.3
    mcpp 2.7
    db 4.6.21.NC
    ice 3.2.1
    icephp 3.2.1

    this is my installed process:
    #apache
    cd ../${httpd_version}
    ./configure -prefix=$httpd_dest --enable-so
    make
    make install

    #mcpp
    cd ../${mcpp_version}
    patch -p0 < ../mcpp/mcpp-2.7.patch
    patch -p0 < ../mcpp/mcpp-2.7.patch2
    ./configure CFLAGS=-fPIC --enable-mcpplib --disable-shared
    make
    make install

    #db
    cd ../${db_version}/build_unix/
    ../dist/configure --enable-cxx
    gmake

    #ICE
    cd ../../${ice_version}
    make
    make install

    #PHP
    cd ../${php_version}
    ./configure --prefix=$php_dest --with-mysql=$mysql_dest --with-apxs2=$httpd_dest/bin/apxs --enable-track-vars --with-config-file-path=$httpd_dest/conf --enable-ftp --enable-magic-quotes --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-trans-sid --enable-wddx=shared --enable-xml--with-curl --with-openssl --with-xmlrpc --enable-sockets --with-pdo-mysql=$mysql_dest
    make
    make install

    #ICEPHP
    cd ../${icephp_version}
    cp $source_dir/Make.rules ./config/ -f
    export ICE_HOME=/opt/Ice-3.2.1
    export PHP_HOME=$php_dest
    make
    make install

    After installation, apache can run correctly,but when I add something as below in php.ini:
    extension=IcePHP.so
    ice.profiles=/myPHPpath/etc/ice.profiles

    And modify the extension_dir to another dir where I put IcePHP.so in it.
    Then I create a file(ice.profiles) and a folder(ice.slices) in /myPHPpath/etc
    and copy your demo --hello.ice into ice.slices, add some content in ice.profiles:
    ice.slice=/myPHPpath/etc/ice.slices/Hello.ice

    Then add the directory containing icecpp.exe in my PATH

    Now I start apache, the result is:
    sh: icecpp: command not found
    PHP Fatal error: Unable to start ice module in Unknown on line 0

    Why?I tried so hard but can't solve it~~Please help me~~Thank YOU very much!!

    My English is poor, forgive me please!

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi,

    We only provide free support here on the forum for the most recent release of Ice. Can you upgrade to Ice 3.3 and try again? One advantage of upgrading to Ice 3.3 is that we no longer use an external preprocessor (icecpp) executable.

    Regards,
    Mark

  3. #3
    Shawn Zhang is offline Registered User
    Name: Shawn Zhang
    Organization: Golden Eagle software
    Project: eosEye, a desktop security monitor system
    Join Date
    Jul 2008
    Posts
    11
    Thank U for your response.I copied the files which are in the directory "Ice-3.2.1/bin" to /usr/bin, and the problem has been solved.
    Now I'm using Ice-3.3.0 And IcePHP-3.2.1(Why is IcePHP-3.3.0 not exist?),and the new question is how can I write the ice.slice for several files?
    Here is my files:
    ================================================== ============================
    A.ice
    ------------------------------------------------------------------------------
    #ifndef ISERVICEBASE_ICE
    #define ISERVICEBASE_ICE

    module DTMSystem
    {

    dictionary<string, string> MapDepend;

    // This is DTMService IDL
    interface InterfaceBase
    {
    int Start();
    int Stop();
    void Terminate();
    int Pause();
    int Resume();

    int GetStatus();
    string GetVersion();
    };

    };

    #endif
    ================================================== ============================
    B.ice
    ------------------------------------------------------------------------------
    #ifndef _INTERFACEMANAGER_ICE
    #define _INTERFACEMANAGER_ICE

    #include <InterfaceBase.ice>

    module DTMSystem
    {

    sequence<byte> ByteSeq;

    struct DeviceInfo
    {
    ...
    };

    struct RegisterInfo
    {
    ...
    };

    interface InterfaceManager extends InterfaceBase
    {
    //some definitions
    };

    };

    #endif

    ================================================== ============================
    C.ice
    ------------------------------------------------------------------------------
    #ifndef _Telnetd_Ice_ice
    #define _Telnetd_Ice_ice

    #include <InterfaceBase.ice>

    module DTMSystem
    {

    sequence<byte> ByteSeq;

    interface InterfaceTelnetd extends InterfaceBase
    {
    bool RestartServer();
    };

    };

    #endif
    ================================================== ============================

    I have looked for some threads in help center, and write the ice.slice like this:
    ice.slice = -I/path/ /path/B.ice /path/C.ice

    The error message is:
    /dtm/websvr/php/etc/ice.slices/InterfaceBase.ice:16: redefinition of dictionary `MapDepend' as dictionary
    /dtm/websvr/php/etc/ice.slices/InterfaceBase.ice:20: redefinition of interface `InterfaceBase'
    /dtm/websvr/php/etc/ice.slices/InterfaceTelnetd.ice:11: redefinition of sequence `ByteSeq' as sequence
    PHP Fatal error: Unable to start ice module in Unknown on line 0

    Why?How can I fix it? Thank You for your help!!

  4. #4
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    The PHP source distribution is contained in Ice-3.3.0.tar.gz. I recommend upgrading at your earliest convenience (particularly if you want to receive support on this forum, since we only offer support for the latest version here).

    Take a look at 2 .Ice in php for a solution to your redefinition problem.

  5. #5
    Shawn Zhang is offline Registered User
    Name: Shawn Zhang
    Organization: Golden Eagle software
    Project: eosEye, a desktop security monitor system
    Join Date
    Jul 2008
    Posts
    11
    All right, I put them in one file, and it works ~Thank You Very Much!!
    Last edited by Shawn Zhang; 01-05-2009 at 12:38 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •