Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Sun Microsystems Linux Business Operating Systems Software Unix

Linux Apps On Solaris 356

querencia writes "Sun has announced that Solaris 10 will comply with the Linux Standard Base specification, thus allowing Linux apps to run unchanged on Solaris. This isn't emulation -- they claim that it is 'kernel-integrated and supported as an operating system feature.' While I appreciate the benefits of the Solaris OS, I've considered them on the losing end of the battle until now. Will the power of Linux apps put Solaris back into the running?" Update: 08/04 15:50 GMT by J : At OSCON, Sun reaffirmed that Solaris 10 will be open-sourced. They said it would be one of the OSI licenses, not sure which yet; that this was approved at the highest levels of the company; and (with the expected "we're just guessing" language), it could happen as soon as year's end.
This discussion has been archived. No new comments can be posted.

Linux Apps On Solaris

Comments Filter:
  • by isolation ( 15058 ) on Wednesday August 04, 2004 @09:35AM (#9878201) Homepage
    You can think of this support for Linux apps on Solaris as the same way Wine works. It provides a layer of support by implementing the needed APIs without having to deal with a total emulation enviroment.
  • by MojoRilla ( 591502 ) on Wednesday August 04, 2004 @09:41AM (#9878260)
    This only works on Solaris x86 machines, which has always been the ugly Solaris step-child.

    This seems to me to be a little desperate. Sun seems to be saying that Linux has won, at least in terms of software support.
  • by sudohnim ( 248093 ) on Wednesday August 04, 2004 @09:44AM (#9878295)
    You've never heard of CSW [blastwave.org]?

    What is blastwave.org?
    blastwave.org is a collective effort to create a set of binary packages of free software, that can be automatically installed to a Solaris computer (sparc or x86 based) over the network.


    We (CSW) don't provide "Linux apps", but we natively compile and package software for Solaris.

    Will the power of Linux apps put Solaris back into the running?

    The power of free software compiled natively for my SPARC has returned Solaris to being my primary desktop. (Now if only I could afford a Blade 2500....)
  • Re:you mean like... (Score:5, Informative)

    by zz99 ( 742545 ) on Wednesday August 04, 2004 @09:44AM (#9878297)
    The Doom 3 Linux port should be out soon if I have my way.

    According to the .plan of the ID software CEO [shacknews.com] there will be a Linux version soon:

    Mac and Linux: Unfortunately I don't have dates for either of these. However, Linux binaries will be available very soon after the PC game hits store shelves. There are no plans for boxed Linux games. More remains to be done for the OSX version of DOOM 3 and that will take some time. We won't release the OSX version until it's just as polished as the PC version. The date for OSX DOOM 3 remains "when it's done", but I can confirm that it's definitely coming.

  • by chegosaurus ( 98703 ) on Wednesday August 04, 2004 @09:49AM (#9878348) Homepage
    dtrace, zones, zfs, Sun support, source compatibility with Solaris SPARC, better stability (IMHO), and some people just prefer it. And it's not very expenive, if you pay at all.
  • For the curious (Score:3, Informative)

    by Sebby ( 238625 ) on Wednesday August 04, 2004 @09:50AM (#9878351)
    I tried to find the original article mentioning it but could only find this [spymac.com], which indicates it was originally mentioned on MacOSRumors [macosrumors.com] (wow! they're actually back!).

  • Re:Apache (Score:3, Informative)

    by chegosaurus ( 98703 ) on Wednesday August 04, 2004 @09:52AM (#9878382) Homepage
    How about getting someone who knows what they're doing to come in to compile it for you? Apache, PHP and all their dependencies shouldn't take more than half a day for any decent admin to build from source. And they can use Sun's great compilers (soon to be available for Linux) instead of gcc.
  • by isolation ( 15058 ) on Wednesday August 04, 2004 @09:59AM (#9878463) Homepage
    The LSB defines a set of APIs and libraries along with the locations in the filesystem. This project adds a layer to intercept the Linux Syscalls and either redirect them or implement them as Solaris Native. This is the same thing the Wine does except that Wine exists only in userspace.

    A better example would be Linux emulation on FreeBSD. Solaris is doing the same thing the FreeBSD people have been doing for years.
  • Re:Also (Score:1, Informative)

    by Anonymous Coward on Wednesday August 04, 2004 @10:08AM (#9878542)
    its not the point - the benefit will be that you can take an allready working linux application binaries and throw them down on Solaris x86 and just run it - no porting or tidying up crappy code.

    You dont waste time and resources porting the app, you can generally use the same hardware and but you do it under Solaris geting the advantages of that OS (dtrace, ZFS, zones, support etc).

    I think the main benifit will be that once application providers are able to see that their app can run under Solaris and people use it, they might be interested in actually doing a Solaris port which with the Solaris source code compatibility you can then just compile for SPARC, opening up more markets.

  • Re:Apache (Score:2, Informative)

    by linsys ( 793123 ) <linsys AT intrusionsec DOT com> on Wednesday August 04, 2004 @10:09AM (#9878551) Homepage
    What complexity of getting php to work??

    If you can't run:

    rpm -Uvh php-4.3.8-2.1.i386.rpm then it's hard?

    and

    rpm -Uvh apache2-2.0.47-1.7.2.i386.rpm

    then it's HARD???

    Try this:

    1) Visit Apache's Web Site

    2) Download httpd-2.0.50.tar.gz

    3) Build Apache:

    1. gzip -d httpd-2_0_NN.tar.gz
    2. tar xvf httpd-2_0_NN.tar
    3. gunzip php-NN.tar.gz
    4. tar -xvf php-NN.tar
    5. cd httpd-2_0_NN
    6. ./configure --enable-so
    7. make
    8. make install

    4) Visit the PHP Web Site
    5) Download php-4.3.8.tar.gz

    1. gtar zxvf php-4.3.8.tar.gz
    2. ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
    3. make
    4. make install
    5. cp php.ini-dist /usr/local/lib/php.ini

    6) Configure httpd.conf

    AddType application/x-httpd-php .php .phtml

    7) Start Apache /usr/local/apache2/bin/apachectl start

  • by Anonymous Coward on Wednesday August 04, 2004 @10:14AM (#9878593)
    I'd be willing to say that Dell, IBM, and HP have as good as, if not better support for their hardware and Red Hat and Novell completely support their products.

    Zones? I see you haven't done a lot of research. Linux has had equivilent features since early 2.4 by way of the grsecurity project.
  • by linsys ( 793123 ) <linsys AT intrusionsec DOT com> on Wednesday August 04, 2004 @10:23AM (#9878665) Homepage
    What hefty price tag are you talking about??

    Soalris 10:
    $99 (One-year subscription) - Commercial Use
    FREE - NON Commercial

    Soalris 9: New Sun Computer Systems. The end user is authorized to use the latest version of the Solaris Operating System (or any other version still commercially offered by Sun) with the new Sun computer system and system board purchased from Sun or an authorized reseller."

    And if it's for development, or educational use it's FREE as well.
    "
  • Re:News of the Weird (Score:3, Informative)

    by Cajal ( 154122 ) on Wednesday August 04, 2004 @10:31AM (#9878760)
    Sun never threatened to buy Novell. It was essentially a random musing in a blog post by Schwartz that got blown way out of proportion.
  • Re:IOW... (Score:3, Informative)

    by jonabbey ( 2498 ) * <jonabbey@ganymeta.org> on Wednesday August 04, 2004 @10:41AM (#9878852) Homepage

    Mmmm.. but the vast majority of syscalls made on a Linux system are made by glibc. They'd have to tweak the syscall interface in glibc for Solaris, but an adapted glibc would still be one of the defining features for Linux API compatibility.

  • Re:Apache (Score:1, Informative)

    by Anonymous Coward on Wednesday August 04, 2004 @11:04AM (#9879084)
    And they can use Sun's great compilers (soon to be available for Linux) instead of gcc.

    No, Sun is only releasing the Sun Studio 9 [sun.com] IDE for Linux, not the Sun compilers. SS9 will use GCC [sun.com] under Linux.
  • Re:IOW... (Score:1, Informative)

    by Anonymous Coward on Wednesday August 04, 2004 @11:53AM (#9879628)
    Actually, many system calls aren't wrapped by glibc. To use those, you must #include <linux/unistd.h> and use the syscall macros, which use assembly, which includes the interrupt.

    And statically-linked binaries DO count, because if your implementation can't run static binaries, it's not binary compatibility.

    Besides.. The syscalls do not match one-to-one anyway. There are a lot of small incompatibilities between Linux and Sun syscalls. And then, Linux has Linux-only syscalls, Sun has Sun-only syscalls, etc.
  • by Cajal ( 154122 ) on Wednesday August 04, 2004 @12:07PM (#9879773)
    Well, it's about a year old, but you might want to take a look at this story on osnews [osnews.com] that compared RedHat 9 and Solaris 9.
  • Re:Actually... (Score:4, Informative)

    by oldmanmtn ( 33675 ) on Wednesday August 04, 2004 @12:22PM (#9879970)
    Done (or at least getting there). Next time you're on a Solaris box, look in /usr/sfw/bin. Solaris now ships with bash (in /usr/bin) and GNU tar, grep, wget, texinfo, gs, ncftp (OK, not GNU but still usefull), and mozilla.

  • by Anonymous Coward on Wednesday August 04, 2004 @12:47PM (#9880221)
    Unfortunately, while Java is powerful there are still many lower level things that you cannot do in Java. A primary example of this is low level networking protcols. Something as simple as ping cannot be written in Java because it does not implement ICMP (ok except for UDP error messages). Recompling C code isn't really the answer to portability either and we all know that many things do not always recompile due to differences in OS implementation (ex. BPF in BSD vs. raw socket in linux). So if you're an admin without much time to spare binary compatiblity is really nice. If it was easy to just recompile or use Java or Perl then why does BSD have a linux compatability?
  • by upsidedown_duck ( 788782 ) on Wednesday August 04, 2004 @01:36PM (#9880732)

    The ultimage gnutastic gnuventure: compiling GNUCash under Solaris. Not only is GNUCash a GNOME app, it's a GNOME 1.4 app, and libtool just barfs all over the place with doubly-listed libraries and unfound libraries. Bleh. There's a reason why pre-compiled GNUCash versions for Solaris seem to be stuck at 1.6. I did finally manage to get version 1.6.x compiled, but even then the graphing features segfaulted.

  • by vlad_petric ( 94134 ) on Wednesday August 04, 2004 @01:47PM (#9880880) Homepage
    The reason Solaris does so well on many processors is because Sun's strategy regarding "big iron" was "ultraslows, but many". It's very true that their target workloads (server-based) can exploit multiprocessing easily. Having good support for multiprocessors was simply crucial for the platform.

    In the x86 world things are quite different. Having been a desktop-oriented architecture for a long time, the main x86 chips (Opteron/Pentium IV) are pretty much the best these days at executing single-threaded stuff (see spec.org if you don't believe me). Multiprocessing was more of an "after-thought" than an initial requirement. Consequently, you can easily get 4-way SMPs for x86s, but not more than that (Sun AFAIK scales considerably better).

    This reflects on x86 OSes as well. There's not that much need to do well on more than 8 execution contexts (4way SMP x2 - hyperthreading), and consequently having an operating system that scales better won't have that much of an impact on x86. Sure, in the "big iron" category things will be different, but not for the dominant architecture

  • Re:SCO, Phase II (Score:4, Informative)

    by swordgeek ( 112599 ) on Wednesday August 04, 2004 @03:50PM (#9882096) Journal
    You're missing a key point here, I believe.

    There are cases where people need Sun, and Sun apps. Lots of Geophysical apps run only on Solaris/Sparc right now. However, people might also want Linux apps, so making them available on the already mandatory Sun gear will keep some people gruntled.

    Ultimately, you're right--if Linux compatibility is wanted, Linux is generally going to be the best solution in a vacuum. However if Linux compatibility is wanted on top of other requirements, then a compromise like this is better than having two machines on your desk.

Happiness is twin floppies.

Working...