intel installer on debian.

intel installer on debian.

For all you debian/ubuntu/etc users, here is how I fixed it:

run alien as root or fakeroot on each rpm that you want to install.

In my case *.i386.rpm

or

for RPM in *.i386.rpm

do

alien $RPM

done

exit as root.

Then run this script on each of the newly created *.deb file.

Save the script as convert.rb, then run

./convert.rb *.deb

###############################################

#!/usr/bin/ruby

# Shea Martin

# 15.apr.2006

# shea At snowsquirrel dot ca

require 'find'

require 'fileutils'

def do_cmd( p_cmd )

puts p_cmd

if system( p_cmd )

if $? != 0

puts "command failed, quitting"

exit 1

end

end

end

result_dir = './result'

temp_dir = result_dir + '/tmp'

FileUtils::rm_rf( temp_dir )

FileUtils::mkdir_p( result_dir )

FileUtils::mkdir_p( temp_dir )

ARGV.each do | deb |

if not File.file?( deb )

puts "#{deb} does not look like a file"

exit 1

end

if deb == nil

puts "you must specify a *.deb file"

exit 1

end

do_cmd( "dpkg-deb -e #{deb} #{temp_dir}/DEBIAN" )

do_cmd( "dpkg-deb -x #{deb} #{temp_dir}" )

install_dir = nil

if deb =~ /intel-icc9_/ or deb =~ /intel-icc-ide9_/ or deb =~ /intel-isubh9_/

install_dir = '/opt/intel/cc/9.0'

elsif deb =~ /intel-iidb9_/

install_dir = '/opt/intel/idb/9.0'

end

Find.find( temp_dir ) do | l_file |

if not File.file?( l_file )

next

end

bak = l_file + ".convert_bak"

FileUtils::cp( l_file, bak )

File.open( l_file, 'w' ) do | file |

IO.foreach( bak ) do |line|

if line.gsub!( '', install_dir )

puts "#{l_file}, changed line:
'#{line}'"

end

file.puts line

end # foreach

end # file open

FileUtils::rm( bak )

end #find

do_cmd( "dpkg-deb -b #{temp_dir} #{result_dir}/#{deb}" )

FileUtils::rm_rf( temp_dir )

end #each argv

puts "done"

exit 0

###############################################

A folder will be created called result. In the 'result' folder, you will have 4 new *.deb files.

Install them like this:

for DEB in *.deb

do

dpkg -i --force-over
write

end

Now just add this line to your .bashrc, or .zshrc:

source /opt/intel/cc/9.0/bin/iccvars.sh

source /opt/intel/idb/9.0/bin/idbvars.sh

Hope this works for you.

~S

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.