<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    So, how do I install PECL extensions like APC if the package manager
    wants to install PHP54 as a dependency even though my system has
    PHP53?<br>
    <br>
    Doesn't seem possible without compiling source.<br>
    <br>
    ...Jeff<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/18/2013 06:05, Kris Moore wrote:<br>
    </div>
    <blockquote cite="mid:52613224.8040904@pcbsd.org" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 10/18/2013 03:16, Curt Dox wrote:<br>
      </div>
      <blockquote
cite="mid:CAHRv5ygL85dgNjuHgDZLxsxPc5dS=GnXNd234qtyDJNOmjXEsQ@mail.gmail.com"
        type="cite">
        <div dir="ltr"><span style="color:rgb(80,0,80)">On Fri, Oct 18,
            2013 at 12:17 AM, Jeff </span><span dir="ltr"
            style="color:rgb(80,0,80)"><<a moz-do-not-send="true"
              href="mailto:dejamuse@yahoo.com" target="_blank">dejamuse@yahoo.com</a>></span><span
            style="color:rgb(80,0,80)"> wrote:</span><br>
          <div class="gmail_quote">
            <div dir="ltr">
              <div class="gmail_extra">
                <div class="gmail_quote">
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                    <div>
                      <div class="h5">
                        <div>
                          <div
                            style="font-size:10pt;font-family:HelveticaNeue,'Helvetica
                            Neue',Helvetica,Arial,'Lucida
                            Grande',sans-serif"> Hi,<br>
                            <br>
                            I'm running a jail in 9.2 and installed
                            PHP53 (my app requires that version) along
                            with PHP53-extensions.<br>
                            <br>
                            I wanted to additionally install pecl-APC
                            but if I try to install by ports or the
                            pkgng package manager it wants to install
                            PHP54 as a dependency which I don't want.<br>
                            <br>
                            Before pkgng I could just use pkg_add
                            thusly: # pkg_add pecl-APC-3.1.13.tbz from a
                            file I saved in that directory.<br>
                            <br>
                            Now if I try that it bombs because it can't
                            find required packages like PHP 5.3.27 even
                            though it's installed, presumably because
                            pkgng uses a different database that pkg_add
                            can't use.<br>
                            <br>
                            There doesn't seem to be a way to use pkgng
                            to install a package from a local file, only
                            a repository.<br>
                            <br>
                            So I tried to install PEAR which for some
                            reason isn't bundled with FreeBSD PHP
                            port/package.  It should.<br>
                            <br>
                            Pear also would not install because pgkng
                            wanted to install PHP54, etc.  So I got PEAR
                            from the PEAR website and installed it
                            directly.<br>
                            <br>
                            Then I went to install APC with: # pecl
                            install apc<br>
                            <br>
                            That caused a slew of PHP errors and finally
                            bombed saying it couldn't find the XML
                            extension even though it's installed.<br>
                            <br>
                            Warning: Invalid argument supplied for
                            foreach() in
                            /usr/local/share/pear/PEAR/Command.php on
                            line 259<br>
                            XML Extension not found<br>
                            <br>
                            So because of pkgng we can't use PEAR to
                            install anything anymore?<br>
                            <br>
                            I almost like the Wardens package manager
                            but it can be quite tedious to find things
                            and so I often just resort to: # pkg info to
                            see what's installed.<br>
                            <br>
                            Seems the package manager could be improved
                            by allowing installation from a local file
                            and giving the option of ignoring
                            dependencies.  In the case of APC I don't
                            think there are any specific required
                            versions of PHP, etc., so I don't know where
                            the package manager got them from but here's
                            what happened when I used pkg_add:<br>
                            <br>
                            # pkg_add pecl-APC-3.1.14_1.tbz<br>
                            pkg_add: could not find package expat-2.1.0
                            !<br>
                            pkg_add: could not find package
                            openssl-1.0.1_8 !<br>
                            pkg_add: could not find package
                            cyrus-sasl-2.1.26_2 !<br>
                            pkg_add: could not find package
                            openldap-sasl-client-2.4.35 !<br>
                            pkg_add: could not find package perl-5.14.4
                            !<br>
                            pkg_add: could not find package
                            pkgconf-0.9.2_1 !<br>
                            pkg_add: could not find package pcre-8.33 !<br>
                            pkg_add: could not find package gdbm-1.10 !<br>
                            pkg_add: could not find package
                            db46-4.6.21.4 !<br>
                            pkg_add: could not find package
                            libiconv-1.14_1 !<br>
                            pkg_add: could not find package
                            libxml2-2.8.0_2 !<br>
                            pkg_add: could not find package
                            apr-1.4.8.1.5.2 !<br>
                            pkg_add: could not find package
                            apache22-2.2.25 !<br>
                            pkg_add: could not find package php53-5.3.27
                            !<br>
                            <br>
                            It couldn't find them because pkg_add can't
                            use the pkgng DB, but why all the specific
                            versions listed as prerequisites in the
                            first place?<span><font color="#888888"><br>
                                <br>
                                ... Jeff<br>
                                <div><br>
                                </div>
                              </font></span></div>
                        </div>
                        <br>
                      </div>
                    </div>
                    _______________________________________________<br>
                    Testing mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:Testing@lists.pcbsd.org"
                      target="_blank">Testing@lists.pcbsd.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.pcbsd.org/mailman/listinfo/testing"
                      target="_blank">http://lists.pcbsd.org/mailman/listinfo/testing</a><br>
                    <br>
                  </blockquote>
                </div>
                <br>
              </div>
              <div class="gmail_extra">I am certainly no expert,
                however:
                <div><br>
                </div>
                <div>* The ports-mgmt tools 'pkg' and 'pkgng' are
                  entirely incompatible with each other.  If somehow you
                  are using one while the other is active/present, then
                  you will have troubles (possibly identical to those
                  you're experiencing).</div>
                <div><br>
                </div>
                <div>* There is a <a moz-do-not-send="true"
                    href="https://wiki.freebsd.org/PkgPrimer"
                    target="_blank">pkgng</a> management tool called <a
                    moz-do-not-send="true"
                    href="http://www.freshports.org/ports-mgmt/poudriere/"
                    target="_blank">poudriere</a> which may be exactly
                  what you wish to have, as it allows easy creation of a
                  local repo.</div>
                <div><br>
                </div>
                <div>* PC-BSD has a public pkgng repository which (aside
                  from some apparent difficulties recently) should have
                  much of what you need.</div>
                <div class="gmail_extra"><br>
                </div>
                <div class="gmail_extra">I wish you success.</div>
              </div>
            </div>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Testing mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Testing@lists.pcbsd.org">Testing@lists.pcbsd.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.pcbsd.org/mailman/listinfo/testing">http://lists.pcbsd.org/mailman/listinfo/testing</a>
</pre>
      </blockquote>
      <br>
      Yes, the "pkg_*" tools are dead, FreeBSD is no longer making
      packages for them. You should be using "pkg add <filename>"
      or "pkg install <remotename>"<br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Kris Moore
PC-BSD Software
iXsystems</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Testing mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Testing@lists.pcbsd.org">Testing@lists.pcbsd.org</a>
<a class="moz-txt-link-freetext" href="http://lists.pcbsd.org/mailman/listinfo/testing">http://lists.pcbsd.org/mailman/listinfo/testing</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>