Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

March 5, 2009

ColdFusion CFC WSDL libstdc++

I chased a problem all morning with missing libraries in Debian running ColdFusion MX. While trying to run a cfc as a web service I kept getting this error:

"coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: /opt/coldfusionmx7/runtime/bin/jikesw: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory ."

I installed the latest version of libstdc++ and installed libc6-dev but it still didn't work until I tried Keebler's workaround. Props to him.

The end solution was to link the newer library to the old...

"ln -s /usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++-libc6.1-1.so.2"

CFMX 7 running on Debian 4.0

July 12, 2007

Awstats stopped updating

Install Geo::IP Perl Module and Install dos2unix on Debian linux

DOS text files traditionally have carriage return and line feed pairs as their newline characters, while Unix text files have the line feed as their newline character. We often find myself needing to ‘clean-up’ some files saved with Win/DOS characters, and this can be done very easy with dos2unix. While RedHat based Linux distributions will traditionally include these small utils by default, on Debian we have to install them if needed.

The file logresolvemerge.pl included in the awstats package from Debian, needs cleaning up as showed by the error:

/usr/share/doc/awstats/examples/logresolvemerge.pl -bash: /usr/share/doc/awstats/examples/logresolvemerge.pl:

/usr/bin/perl^M: bad interpreter: No such file or directory

The dos2unix and corresponding unix2dos, are found in the tofrodos Debian package, and to install the package just type:

#apt-get install tofrodos

Once we have dos2unix installed, I can use it to clean up very easy any file that needs that:

dos2unix logresolvemerge.pl

and the offending DOS characters are gone.