On Thu, Apr 3, 2014 at 6:14 AM, Karthi Keyan01 <karthi_keya...@infosys.com>wrote:
> I'm trying to install the DBI module in the below mentioned steps as a > root user. > > > > xlc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE > -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT > -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong > -O -DVERSION=\"1.631\" -DXS_VERSION=\"1.631\" > "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE" Perl.c > > /bin/sh: xlc_r: not found. > > make: 1254-004 The error code from the last command is 127. > > > Maybe you don't have the xlc_r installed on your machine at all, or maybe it is not on your path when you are logged in as root. Either way, the primary fix is to ensure that root has access to the xlc_r compiler. The secondary problem is that you're compiling as root. Personally, I recommend doing the compilation and testing as a regular user. Only if you're sure you want to mess with the system installation of Perl do you do the install as 'root'. Minimize the use of root privileges; it reduces the risks of doing damage if something goes wrong. -- Jonathan Leffler <jonathan.leff...@gmail.com> #include <disclaimer.h> Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to be amused."