Error message on install ARGGGG

IT Dept ismanager at ccbnpts.com
Thu Oct 21 23:35:17 UTC 2004


Could do a regex replacement on all the .mk files using something like
s/\/\//\//g.

Used to know a good way to do the above from the command line but it's
been a while. Doing it in Perl would be a snap though:

#!/usr/bin/perl
$run_time = "Program started: ".`date`."\n";

$directory = <dir containing .mk files>;
chdir( $directory ) || die "Unable to enter directory
'$directory'.\n$!\n";

@files = <*.mk>;
$| = 1;
$instancesFixed = 0;
foreach( @files ) {
    $run_time .= "$_\t";
    open(INPUT, "<$_");
    rename( $_, "$_.bak") || die "Unable to rename $_\n$!\n";
    open(OUTPUT, ">$_");
    while(<INPUT>) {
	if ( s/\/\//\//g ) {
	    $instancesFixed++;
	}
	print OUTPUT;
    }
} continue {
    $run_time .= "($instancesFixed)\n";
    $instancesFixed = 0;
    close INPUT;
    close OUTPUT;
}

$run_time .= "Program ends: ".`date`."\n";

print $run_time;
# eof

I use a version of the above on a regular basis but YMMV ... always back
things up before you do a global edit like the above. :)

Good luck. 

Paul Pettit
IT Manager
CCB Inc. 

-----Original Message-----
Sent: Thursday, October 21, 2004 4:53 PM

I've found part of the problem but don't know what to do to fix it, I
have just posted the following to the Oracle Installation discussion
site:

erroneous // strings in .mk files causing errors  Oct 21, 2004 2:50 PM  
  Reply  
 
... 

If you remove the // you can cd into that lib director and find the so
file easily, there are several of these.

Anybody have any suggestions?  




More information about the redhat-list mailing list