LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-16-2010, 01:31 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Installing Linux packages in OpenSolaris


Hi Forum

As a Slackware user, i have built a "private" repo of packages I use...

All together they make up a full set of an "Independent" system ( independent means tha all mutual dependencies are satisfied, because I only built whatever I needed... )

In case I would want to install them in OpenSolaris ( is this possible anyway....?? )

I would have to create a Linux branded Zone and install them... ( wishful thinking... !! )


How do I do this...?

Do i need to Install some sort of a Chroot jail with Slackware...?

Does OpenSolaris "emulate" Slackware...?

pls understand that I am a total n00b in OpenSolaris...

BRGDS

Alex
 
Old 01-17-2010, 01:42 AM   #2
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
Hi. I'm not an open solaris expert myself. I only installed opensolaris once on an empty partition to play with and erased the partition when I've needed the space.

As I understand Unix systems, and by the Unix specification, programs don't have to be binary compatible between Unix implementations.
I believe this is the case with open solaris as it isn't ABI compatible with Linux binaries, so what you are trying to do is not possible.

Since opensolaris is a Unix system most Linux packages will compile fine on it so you can always recompile them in openolaris

As I said. I'm no opensolaris expert, and if you want more detailed info(or possibly more correct one), i guess you have to study opensolaris documentation on this issue or hopefully wait for a response of a opensolaris more experienced user.
 
Old 01-17-2010, 03:51 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by ammorais View Post
As I understand Unix systems, and by the Unix specification, programs don't have to be binary compatible between Unix implementations.
Correct
Quote:
I believe this is the case with open solaris as it isn't ABI compatible with Linux binaries, so what you are trying to do is not possible.
Not directly but Solaris lx branded zones provide a Linux ABI compatible environment.
Quote:
Since opensolaris is a Unix system most Linux packages will compile fine on it so you can always recompile them in openolaris
Yes, or just find already compiled packages for the same software.
 
1 members found this post helpful.
Old 01-17-2010, 04:02 AM   #4
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
This thread has awaken my opensolaris curiosity again. Since I've just bought a brand new(and currently empty) 1,5 TB disk I guess I will give it a more serious try, since I have been listening good things about it.
 
1 members found this post helpful.
Old 01-17-2010, 02:24 PM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Again

How to I make a package of a library/application in OpenSolaris...?

Is there this concept of Building an installable Package in Open Solaris...?

BRGDS

Alex

For instance, paraview http://www.paraview.org/

This is a cmake build, how do I package this into an openSolaris format...?

Last edited by Alexvader; 01-17-2010 at 02:27 PM.
 
Old 01-17-2010, 03:10 PM   #6
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
It is possible to install a full Linux distribution in OpenSolaris, using something called BrandZ, which is also called Zone. They are like Jails in FreeBSD, a very light weight virtual machine. All Linux kernel calls, get remapped to OpenSolaris calls. So OSol will carry out the Linux calls. This is very lightweight and each Linux BrandZ instance uses little RAM. One guy started 1000 Zones in 1GB RAM. It was ultra slow, but it worked. There is only one kernel active, the Solaris kernel. All Linux kernels, are just a dummy, remapping the call to the Solaris kernel instead.

In these BrandZ, you can do a full install of other OS to: Solaris 8, Solaris 9 and Solaris 10. This is open source, someone could possibly make a FreeBSD BrandZ too. You can install a Linux BrandZ in a ZFS dataset and snapshot it, and then clone it and install other things. And run all of them in parallell with different IP adresses. Very neat.


The BAD thing is that these BrandZ only officially support Linux v2.4 and 32bit, preferably CentOS v3.5. There is inofficial support for Linux v2.6, people have installed e.g. Ubuntu and CentOS v5. No 64bit support exist yet. More info on the Linux BrandZ zone (called "lx zone")
http://hub.opensolaris.org/bin/view/...brandz/install
Very easy install. Try it out on a new "zfs create" dataset and delete it after trying.

I suggest you use VirtualBox and install Linux there. However, VB is very heavy weight compared to BrandZ.
 
1 members found this post helpful.
Old 01-17-2010, 03:27 PM   #7
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Thanks Kebabbert

I think I will probably compile from source in OSol build installable packages...

These are "hard-Core" numerically intensive apps for CFD, FEA... so 64bit pointers are a must in accessing huge memory data structures like computational Fluid Dynamic fine meshes ...

BRGDS

Alex
 
Old 01-17-2010, 03:33 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Alexvader View Post
How to I make a package of a library/application in OpenSolaris...?

Is there this concept of Building an installable Package in Open Solaris...?
Sure there is. Solaris was probably the first Unix to introduce/make popular software packaging.
OpenSolaris supports both the traditional SVR4 packaging format and the newer IPS one:
http://docs.sun.com/app/docs/doc/817-0406
http://dlc.sun.com/osol/docs/content/IPS/ggcph.html
Quote:
For instance, paraview http://www.paraview.org/

This is a cmake build, how do I package this into an openSolaris format...?
You'll find numerous examples of package creation cookbooks, eg:
http://www.opencsw.org/standards/pkgcreation
http://www.sunfreeware.com/pkgadd.html
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New To Linux! Problem Installing Packages AvicusUK Linux - Newbie 6 10-29-2009 12:30 PM
how to install packages in opensolaris 5.11 srinivasmiriyalu Solaris / OpenSolaris 3 04-04-2009 04:22 AM
Installing OpenSolaris KStorm Solaris / OpenSolaris 2 03-30-2009 09:19 AM
installing default packages after installing linux ninux Linux - Newbie 5 09-12-2007 07:00 AM
Installing opensolaris: problem by unzip xpucto Solaris / OpenSolaris 3 07-18-2006 06:11 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration