Jump to content

installing rar package


Guest

Recommended Posts

I'm trying to install the rar package. I checked php.net's installation docs and it just said to execute pecl -v install rar

 

i did it and rebooted server but its still not working. i'm very noob with the linux stuff so maybe did i do something wrong ?

 

i'm trying to execute this script, i found it on php.net docs so it should be working:

 

        $rar_arch = RarArchive::open('dl/test.rar');
        if ($rar_arch === FALSE)
            die("Could not open RAR archive.");

        $rar_entries = $rar_arch->getEntries();
        if ($rar_entries === FALSE)
            die("Could retrieve entries.");

        echo "Found " . count($rar_entries) . " entries.\n";

        foreach ($rar_entries as $e) {
            echo $e;
            echo "\n";
        }
        $rar_arch->close();

 

how can i check if rar package was successfully installed ?

 

Link to comment
https://forums.phpfreaks.com/topic/279407-installing-rar-package/
Share on other sites

Ok i figured out how to install phpize, now this is what i am getting when trying to run "pecl -v install rar"

 

 

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/var/tmp/pear-build-root/rar-3.0.1':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
rolling back 388 file operations
ERROR: `/tmp/pear/temp/rar/configure' failed
root@ks3272412:~# configure: error: in `/var/tmp/pear-build-root/rar-3.0.1':
 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.