Installing on Ubuntu Precise

Hello,

I am trying to install and configure FOP2 on an Ubuntu Precise machine

I found a static linking copy of 2.26 on advice from this forum and I still get strange errors related to wrong version of perl:
kbarrett@pbx-dev:~/fop2$ /usr/local/fop2/fop2_server --test
Can't locate Config.pm in @INC (@INC contains: /home/kbarrett/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/kbarrett/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/kbarrett/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl5/PAR.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/PAR.pm line 7.
Currently cannot get past this one. I have done a lot of unpleasent machination with cpan to make it get this far. Kind of expect you are going to tell me that I am not intended to be able to run this from a modern linux like Ubuntu Precise. *wink*

Has anyone tried this kind of setup? I have Perl 5.14, and I'm guessing the correct solution is not to symlink perl/5.14 to perl/5.8 in a couple of places, but some other answer.

fop2-2.26-debian-static-x86_64.tgz -- I can't find the original forum thread where I found this file, but it comes from download.fop2.com, so I assumed it was legit. It looks like everything is statically linked except for the version of perl. Don't know how you would get around that one either.

Comments

  • the static file has libraries outside perl linked, not perl itself. No need to be ironic *blink*, you are using a distribution released AFTER fop2 was released. Do not expect an old package to work on a more recent distro. If you want bleeding edge, you will have this kind of issues, not only with fop2 but with a lot of other software.

    FOP2 should work without playing with cpan, that is the original idea.. actually adding cpan modules will probably make things a little bit worst.

    If you plan to run a server, a stable server, in my opinion, you should not run bleeding edge anything. But that is just my opinion.

    I am heavily working on what it would be the next fop2 release, I will see if I have the time to test/package for ubuntu bleeding edge.

    Best regards,
  • Hi, thanks for your thoughtful reply

    I did get it working on precise (sort of) by deploying Ubuntu Hardy Heron into a chroot using debootstrap.

    It actually went really smoothly. I have not yet explained this to my boss, who thinks that schroot is a dirty word.

    I understand that you are selling this tool for $50 and that is not a lot of money, it should not demand of you a lifetime of support and upgrades, but I hope you are targeting newer versions for release in the future! It's a really great product.

    Still Hardy Heron was released in 2008. That's almost Two years before Elive 2.0, which was based on Debian Lenny. In my world, that's almost totally obsolete.

    What are my best options for a fully integrated system with FOP2 and updates? I have read FreePBX and Elastix, please tell me your preference for a distro hosting new installations.
  • Precise != Hardy . You talked about Precise that is more recent than the latest FOP2.

    In any case, there are FOP2 packages for centos/redhat and debian. (hint: there are no packages for Ubuntu, Slackware, Gentoo, etc). Although ubuntu is based on debian, you might have some issues that could be fixed by creating some simple symlinks. But sometimes is not that simple. I always try to fix or find workarounds for getting the software working, but that might take time, and cooperation from users as we do not have the time to install every distribution and test.

    There are users running it on different ubuntu versions and other niche/special linux distributions, even FreeBSD, but it will require work/effort, as you already find out. That is also why I suggest always to download and try FOP2 before purchase.

    As for my opinion, I think its already clear that I rather run centos/debian, and maybe not the latest release of them but their stable versions.
  • Right, well I like my systems to be current, but it's nice to have stable software that works.

    To prepare a debootstrap chroot in Ubuntu Precise (or Quantal or newer) that will support FOP2:
    apt-get install debootstrap schroot
    mkdir -p /srv/chroot/hardy
    debootstrap hardy /srv/chroot/hardy http://archive.ubuntu.com/ubuntu
    
    This will do for /etc/schroot/schroot.conf:
    [hardy]
    description=Hardy (perl 5.8)
    directory=/srv/chroot/hardy
    users=YOURNAMEHERE
    root-groups=sudo
    aliases=default,fop2
    
    You're just typing schroot -c hardy -u root then the usual init.d sequence to start fop2 and apache servers.

    As usual, apt-get install apache2 libapache2-mod-php5 and make install in fop2 source dir, and it works!

    I had to modify my fop2.conf because we are not using the default password and of course our AMI is not on localhost either.

    In this way you can have fop2 on quantal. I know, it's kind of cheating, since it's not really "on" quantal but under it, but I didn't want to install a whole hardy system! I did eventually find if you don't have a button with your own extension number (that you used to log in) configured, you don't get any action buttons and you can't listen to other buttons or really do anything at all.
Sign In or Register to comment.