How to install FreeB?

arcticinferno24 wrote on Monday, January 09, 2006:

This is what I get when I issue the make command.
I must be missing some dependencies or something.

make
for i in formatsrc/*.xml; do
        echo `echo $i | sed -e ‘s/formatsrc///g;’ | sed -e ‘s/\.xml//g;’` > .current_compile;
        perl -s bin/FreeB_Compiler.pl $i > formatbin/`cat .current_compile`.pl;
        chmod +x formatbin/`cat .current_compile`.pl;
        rm .current_compile -f;
        echo “Compiled $i”;
done
Can’t locate Parse/RecDescent.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at bin/FreeB_Compiler.pl line 21.
BEGIN failed–compilation aborted at bin/FreeB_Compiler.pl line 21.
Compiled formatsrc/hcfa.xml
Can’t locate Parse/RecDescent.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at bin/FreeB_Compiler.pl line 21.
BEGIN failed–compilation aborted at bin/FreeB_Compiler.pl line 21.
Compiled formatsrc/x12.xml

I’m using Debian Linux.
Any help would be appreciated.

drbowen wrote on Monday, January 09, 2006:

You look like you are missing some PERL modules.  Take a look at the FreeB install mini Howto:

http://www.oemr.org/modules/wiwimod/index.php?page=FreebInstallImproved&back=WiwiHome

an experpt:

# perl -MCPAN -e shell
cpan> install Bundle::CPAN
cpan> install DBI
cpan> install DBD::Pg

For FreeB:

# perl -MCPAN -e shell

cpan> install HTML::HeadParser
cpan> install HTML::Template
cpan> install Date::Calc
cpan> install Frontier::Responder
cpan> install HTTP::Daemon
cpan> install PDF::Create
cpan> exit

Sam Bowen

arcticinferno24 wrote on Monday, January 09, 2006:

That’s what I thought, so I did this.
apt-get update
apt-get install perl
I’m still having problems.
What should I install?
apt-get install “what?”
Thanks.

drbowen wrote on Monday, January 09, 2006:

as root from the command prompt:

try:

aptget install CPAN

then

perl -MCPAN -e shell

once the CPAN prompt is up do the following.

install LWP:: UserAgent
install Bundle::CPAN
install DBI
install DBD::Pg
install HTML::HeadParser
install HTML::Template
install Date::Calc
install Frontier::Responder
install HTTP::Daemon
install PDF::Create
exit

Aptget is used to install the base packages of PERL but the CPAN command shell is the most efficient way to install PERL modules.

SourceForge is filtering a lot of the special symbols.  The CPAN prompt has a square bracket pointing to the right.  This is being converted to >  by the SourceForge server.

Sam Bowen

sunsetsystems wrote on Monday, January 09, 2006:

First, don’t run make in FreeB.  It will, at best, generate obsolete versions of various executables.

Here are the packages that I added to a bare-bones Ubuntu 5.10 in order to accommodate OpenEMR, FreeB and SQL-Ledger:

apache2-mpm-prefork
libapache2-mod-perl2
libapache2-mod-php4
php4-mysql
php4-pgsql
php4-cli
mysql-server
libdbd-pgsql
postgresql-8.0
tetex-extra
libdbd-pg-perl
libxml-parser-perl
libdate-calc-perl
libfrontier-rpc-perl

These will also install many other required dependencies.  Debian should be very similar.  This should take care of all the needed Perl modules, among other things.

– Rod
www.sunsetsystems.com

drbowen wrote on Monday, January 09, 2006:

Rod,

This would be:

aptget install apache2-mpm-prefork

etc?

sunsetsystems wrote on Monday, January 09, 2006:

Yes (that’s apt-get, not aptget).

– Rod
www.sunsetsystems.com

sankar1234 wrote on Tuesday, January 10, 2006:

Would it better to switch to FreeB2 from Clearhealth or wait for the OpenEMR php-version of Freeb2  instead of managing the perls? 

it is kind off messy to manage various modules written in differen languages.

andres_paglayan wrote on Tuesday, January 10, 2006:

Hi, I am kind of having a very busy beginning of the year, but yes, the built in billing generator (for x12 files) will be ready on or about mid February.

sunsetsystems wrote on Tuesday, January 10, 2006:

Andres, that’s good news.  This will make installation a bit easier, but the main benefit will be streamlining the billing process – i.e. this messy concept of “batch processing” will just go away.

By the way I offer a preconfigured virtual machine for those who would like to skip all the installation hassles.  See my web site for info.

– Rod
www.sunsetsystems.com