Will Linux programs run on Solaris 2/x86?

Will Linux programs run on Solaris 2/x86?

The Lxrun program, originally written for
SCO, is now available on Solaris/x86.
The Lxrun emulator allows one to execute Linux binaries,
both in ELF and a.out Linux formats.
Linux ext2 read-only filesystem support from Solaris (mount/unmount)
is included with ext2fs.tar.gz.


To install, first install package SFWlxrun from the
Solaris Software Companion CD.
Setup or mount a ext2fs filesystem, say at /linux (as explained
in a question below on ext2fs).


To use, run programs or shells prefixed with lxrun. For example:


$ uname -a
SunOS dany.drydog.com 5.8 Generic_108529-06 i86pc i386 i86pc
$ lxrun /linux/bin/rpm -q redhat-release
redhat-release-6.2-1
$ lxrun /linux/bin/uname -a
SunOS dany.drydog.com 5.8 Generic_108529-06 i86pc unknown



To avoid prefixing linux filenames with "/linux/"
(or wherever your ext2fs is mounted), and setup a PATHMAP file
(to map Linux filenames to Solaris names).
For Sun's SFWlxrun version of lxrun, type this, as root, to set it up:


(cd /opt/sfw/lib; cp -p PATHMAP-style2 PATHMAP)


For other builds of lxrun, PATHMAP may be at
/usr/local/lxrun/PATHMAP.
The file location can also be changed with environment variable $PATHMAP.


For more information see the following links:






Home
FAQ