Jump to content

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':
 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.