OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Community Group on
:
Installation (from source) Quickstart
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
Installation (from source) Quickstart
Hide Line numbers
1: {{{ 2: [begin README tag - do not delete] 3: 4: Once you have downloaded the tarballs that you need, here are the 5: steps to build the sources. 6: 7: Suppose you are using /export/testws as your workspace. 8: 9: 1. cd to /export/testws and unpack the sources and encumbered 10: binaries, e.g., 11: 12: $ bzcat on-src-DATE.tar.bz2 | tar xf - 13: $ bzcat on-closed-bins-DATE.PLATFORM.tar.bz2 | tar xf - 14: 15: The sources will unpack into "usr/src" and the binaries will unpack 16: into "closed/root_PLATFORM" (i.e., closed/root_i386 or 17: closed/root_sparc). 18: 19: 2. Install the compiler according to the instructions at the download 20: site. (Of course, if the compilers have not changed since you last 21: installed them, there is no need to install them again.) The result 22: should have the compilers installed in /opt/SUNWspro. 23: 24: Please note that the compiler that comes with the Solaris Developer 25: Express release is Studio 12, which is not the standard compiler 26: for OpenSolaris code. If you use Studio 12, you will need to set 27: __SSNEXT to the null string in your environment file. Please do 28: report problems with Studio 12, particularly if the problem goes 29: away when you use Studio 11 (the current standard compiler). 30: 31: If you already have the Studio 11 compiler installed, you can use 32: it, provided you have the following patches installed: 33: 34: SPARC: 35: 120760-07 Sun Studio 11: Compiler Common patch for Sun C C++ F77 F95 36: 121017-02 Sun Studio 11: Patch for Sun C++ 5.8 compiler 37: 121021-02 Sun Studio 11: Patch for Fortran 95 Dynamic Libraries 38: 121019-02 Sun Studio 11: Patch for Fortran 95 8.2 Compiler 39: 121015-02 Sun Studio 11: Patch for Sun C 5.8 compiler 40: 41: x86: 42: 120759-06 Sun Studio 11_x86: Sun Compiler Common patch for x86 backend 43: 121016-02 Sun Studio 11_x86: Patch for Sun C_x86 5.8 Compiler 44: 121018-02 Sun Studio 11_x86: Patch for Sun C++ 5.8 compiler 45: 46: You may find it easier to install the Studio 11 compilers using the 47: tarballs, rather than installing them as packages. 48: 49: 3a. Remove the existing onbld tools, if any. 50: 51: - If this is the first time you are installing build tools, skip ahead 52: to step 3b. 53: 54: - Otherwise, use pkgrm(1M) to remove the old package. 55: 56: 3b. Install the current onbld tools. 57: 58: - The SUNWonbld package is a pkgadd-format directory that has been 59: archived using tar and bzip2. Unpack it in a temporary directory and 60: use pkgadd(1M) to install it. For example: 61: 62: # cd /var/tmp 63: # bzip2 -dc /path/to/SUNWonbld-DATE.PLATFORM.tar.bz2 | tar xf - 64: # pkgadd -d onbld SUNWonbld 65: 66: 4. Update your environment and login dot-files if this is the first 67: time you have installed the compiler and/or build tools. 68: 69: - Add /opt/SUNWspro/bin and /opt/onbld/bin to your $PATH. 70: - Either remove /usr/ucb from your $PATH, or put it at the end. 71: 72: 5. Create an environment file to guide tools like nightly(1) and 73: bldenv(1). 74: 75: - copy /export/testws/usr/src/tools/env/opensolaris.sh to 76: /export/testws. It doesn’t have to go in /export/testws, but 77: that’s a convenient place to put it. Nor do you have to keep the 78: name opensolaris.sh, but that’s the name we’ll use in these notes. 79: 80: Then make the following changes in your opensolaris.sh: 81: 82: - change GATE to the name of the top-level directory (e.g., 83: "testws"). 84: 85: - change CODEMGR_WS to the top-level path (e.g., "/export/testws"). 86: 87: - change STAFFER to your login. 88: 89: - (optional) customize VERSION. This is the string that "uname -v" 90: will print. 91: 92: 6. To build a complete set of archives, cd to /export/testws, utter 93: 94: nightly ./opensolaris.sh & 95: 96: and find something else to work on for a few hours. You can 97: monitor the build’s progress using ptree(1). nightly(1) will send 98: mail to $MAILTO when it has finished. 99: 100: The results mail from nightly(1) will have an overview of the build 101: results. A copy of the mail text and a more detailed log file will 102: be available in the workspace (/export/testws/log/log.YYYY-MM-DD.HH:MM). 103: Pieces of the detailed log are also available under usr/src. For 104: example, usr/src/install-i386.out will have the log from the x86 105: "make install" part of the build. 106: 107: By default nightly(1) will do a "clobber" build, which includes a 108: "make clobber" and blowing away any files that earlier builds 109: installed into $ROOT (/export/testws/proto/root_PLATFORM). To 110: bypass these steps, do an incremental build with "nightly -i 111: ./opensolaris.sh &". 112: 113: 7. To build a specific component, first use bldenv(1) to set up 114: various environment variables, then cd to the subtree that you want 115: to build. For example: 116: 117: $ cd /export/testws 118: $ bldenv -d ./opensolaris.sh 119: [status information from bldenv] 120: $ cd usr/src/cmd/vi 121: $ dmake all 122: 123: To build the kernel, run dmake(1) from usr/src/uts. 124: 125: If you encounter errors, try running with a clean environment: 126: $ env - HOME=$HOME SHELL=$SHELL DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY TERM=$TERM LOGNAME=$LOGNAME LANG=C LC_ALL=C PAGER=less MANPATH=$MANPATH /opt/onbld/bin/bldenv ./opensolaris.sh 127: 128: Please see the Developer’s Reference for information on how to install 129: kernels (using Install(1)) and archives (using BFU). 130: 131: [end README tag - do not delete] 132: }}}
Search
Collectives
Community Group
Academic and Research
Accessibility
Advocacy
Appliances
Approachability
Architecture Process and Tools
BrandZ
Chinese Users
Community Advisory Board
Databases
Desktop
Device Drivers
Distribution
Documentation
DTrace
Emerging Platforms
Fault Management
Games on OpenSolaris
HA Clusters
HPC Developer
Installation and Packaging
Internationalization and Localization
Laptop
Logical Domains
Modular Debugger (MDB)
Networking
NFS
Observability
OpenSolaris Governing Board (OGB)
OpenSolaris Printing
OS/Net (ON)
Performance
Power Management
PowerPC
Security
Service Management Facility (smf(5))
Software Porters
Solaris Volume Manager
Storage
Systems Administration Community Group
Testing
Tools Home
Unix File Systems (UFS)
Website Community
X Window System
Xen
ZFS
Zones
Project
ADSL Modem Enhancement
ARC Process Definition
ARM Platform Port
Automatic Data Migration
BIND Update
Bluetooth Stack & Drivers
Brocade FC HBA - Initiator
Brocade FC HBA - Target
Brussels - unified network link configuration
Caiman, Solaris Install Revisited
Celeste
Český portál
Chime Visualization Tool for DTrace
CIFS client for Solaris
CIFS Server
Clearview: Network Interface Coherence
Cluster Agent: Informix Dynamic Server
Cluster Agent: OpenSolaris Container
Cluster Agent: OpenSolaris xVM
Cluster Agent: Oracle E-Business Suite
Cluster agent: PostgreSQL
Cluster Agent: Samba
Cluster Agent: Tomcat
CMT
Coarse Data Flow Parallelism
Colorado: Open HA Cluster on OpenSolaris
Command Assistant
Common Array Manager
Companion - /opt/sfw: Free and Open Source software
COMSTAR: Common Multiprotocol SCSI Target
Content
Contest
CPU Observability
Credentials Process Groups
Crossbow: Network Virtualization and Resource Control
Crypto KMS Agent Toolkit
Cryptographic Framework
Data Migration Manager
Data Tethers
Deutsches Portal
Device Detection Tool
Device Driver Utility
Device Manager
Device Mapper
Direct Rendering Infrastructure & 3D drivers
DTrace Guide
Duckwater: Simplified name services management
Easy Tools
Emancipation
Emulex Fibre Channel Device Driver
Emulex Advanced Ethernet Device Driver
Enable/Enhance Solaris support for Intel Platform
Enhance the support of USB webcams
Enhanced SMF Profiles
Enhancements for AMD-based Platforms
Erlang DTrace Integration
Ethernet bridge module for Solaris
Evaluate Conary
Events Registry
Ext3 file system support
F/OSS Package Base
Facilitation
Fibre Channel over Ethernet
Fine Grained Access Policy (FGAP)
Fingerprint Authentication
Flexible Mandatory Access Control
Forensic Tools
Fully Open X Project
Fuse on Solaris
gcore
Generic Machine Check Architecture Improvements
Google SOC
HA-JBoss
HA-MySQL
Hadoop Live CD
Hitachi
HoneyComb Fixed Content Storage
HPC Stack
Image Packaging System
Improved Performance MIB
Indiana
Innovation Awards
Input Method
Intel Graphics
Internet Key Exchange, version 2
Interrupt Resource Management
IP Datapath Refactoring
IP over Infiniband
IPsec Tunnel Reform
iSCSI Extensions for Remote DMA (iSER)
iSNS Server
JeOS - Just enough Operating System
JKstat - a java binding for libkstat
Journaled File System (JFS)
K Desktop Environment
Kerberos
Kernel Sockets
Kernel SSL Enhancements
Key Management Framework
Korn Shell 93 integration/migration project
Labeled IPsec
LatencyTOP
Layer 2 Filtering
LDoms Manager
Lending
libMicro - portable microbenchmarks
Link Layer Discovery
Live Media: Technologies for distributions running from CD and other media
Locale Data
lofi compression and cryptography support
lx64 brand
Media Management System
Mega_sas
Mexico
MilaX minimal Live Distribution
MIPS Platform Port
Mozilla DTrace
MRSL.NONsharedDevice
Multi-lingual Glossary
Multi-pathing software (MPxIO)
Multiple disk sector size support
Multiple DOI
Muskoka: An open repository for OpenSolaris technical content
Navigator
Nemo: A Framework for High-Performance Networking
Network Auto-Magic
Network Data Management Protocol
Network MIBs
Network Storage
Network Time Protocol (NTP)
Nevada Globalization
New Design of 4over6 Mechanism Based on OpenSolaris
NFS RDMA transport update and performance analysis
NFS Server in non-Global Zones
NFS version 4.1 pNFS
NFSv4 namespace extensions
Nightingale: Port Songbird to OpenSolaris
NPort ID Virtualization (NPIV)
NUMA
Object Storage Device (OSD) support for Solaris
OHACGE Script Based Plug-in
ON/Nevada (ONNV) Project
Open Development Infrastructure
Open HA Cluster Utilities
Open Sound System
OpenGrok
OpenPegasus CIM Server
OpenRTI
OpenSolaris Busybox
OpenSolaris Desktop
OpenSolaris Hispano
OpenSolaris Security Audit
OpenSolaris support for the QEMU processor emulator: host and guest
PEF: Packet Event Framework
Performance Wrappers
Pkgfactory
Polski Portal
Portail Francophone
Portal Brasil
Portals
Power Management Usability Interfaces
Presto: Automatic Printing Configuration
Printable Many Page Solaris Manuals
Promise SuperTrak RAID HBA Driver
QLogic Converged Network Adapter GLDv3 NIC Driver
Quagga Routing Protocol Suite Integration
RAID Configuration Utility
RBridge (IETF TRILL) support
RDMA Offload Framework
Reno: Login Process Enhancements for Interop
Resource Management
s10brand
SAM/QFS
SCM Migration Project
SCSI RDMA Protocol
SDcard Drivers
Sensor Abstraction Layer
Session Initiation Protocol
SFW
Shell: bourne shell, korn shell, C shell, etc.
Sierra: Intel WiFi Chipsets Support
Simple Panels
SM-HBA Based SAS HBA Management
SMF Documentation
Solaris iSCSI Target
Solaris PowerPC Port
SourceJuicer
Sparks: name service switch/nscd enhancements
Squashfs
Star integration/migration project
Starfish
Starter Kit
Storage Power Management
Sun Security Toolkit
Sun StorageTek Availability Suite
Support for OpenFabrics User Verbs / API on OpenSolaris OS
Support gcc4/GCCfss in Solaris
Suspend/Resume
SVR4 Packaging
Systemz
Tamarack: Removable Media Enhancements in Solaris
Tesla: OpenSolaris Enhanced Power Management
Test Development
Tickless Kernel Architecture
TIPC
Trademarks
Trusted networking interface policy database for Trusted Extensions
Trusted Platform Module support
Use Case
Validated Execution Project
Virtual Console
Virtual Network Machines
Visual Panels
Visualization for HPC
Volo
VRRP: Virtual Router Redundancy Protocol Implementation
VSCAN service
Web Stack
Website
Winchester: Schema mapping and ID mapping for AD Interoperability
Wireless USB Support
Wireless Wide Area Network
X Consolidation
x86 Generic FMA Topology Enumerator
Xen Gate
Xfce: A lightweight desktop environment
ZFS Boot and Install
ZFS on disk encryption support
Zone Manager
Zone Statistics
Русский портал
البوابة العربية
भारतीय पोर्टल
中国门户
日本ポータル
한국 포탈
User Group
Adelaide
Argentina
Arizona
Atlanta
Baltimore-Washington
Bangalore
Bangkok
Bangladesh
Beijing
Bélem
Berlin
Bhimavaram
Bloomington
Campus Ambassadors
Capital Region
Cardiff
Charlotte
Chengdu
Chennai
Chihuahua
Chile
Cleveland
Colombia
Columbus
Connecticut
Cracow
Czech
Dallas/Ft. Worth
Danish
Delaware
Edinburgh
Egypt
Finland
Florida
Front Range
FuZhou
Great Lakes
Greece
Hangzhou
Hawaii
HeFei
Houston
Hyderabad
Indonesia
Irish
Israel
Italian
Jinan
Kabul
Kansas City
Latvia
London
Madurai
Manchester
Mato Grosso
Melbourne
Minas Gerais
Minnesota
Montreal
Moscow
Mumbai
Munich
NEA
Netherlands
New England
New York City
New Zealand
NIT Hamirpur
Noroeste
Oklahoma City
Osnabrück
Peru
Philadelphia
Piaski
Pittsburgh
Porto Alegre
Puget Sound
Pune
Queensland
Research Triangle Park
Romania
Russia
San Antonio
San Diego
San Francisco
São Paulo
Scottish
Serbia
Shanghai
Shenzhen
Silicon Valley
Singapore
Slovak
South African
Southern Connecticut
St. Louis
Sweden
Switzerland
Sydney
Szczecin
Taiwan
Tecum
Thames Valley
Tokyo
Toronto
Trondheim
Tulsa
Turkey
Ukraine
University of Melbourne
Vale do Paraíba
Vancouver
Venezuela
Welsh - Cymru
Wisconsin
Xi'an
Subsites
Code Reviews
Code Repositories
Package Search
Bugster
Bugzilla
Test Machines
Planet
Mailing Lists
Elections & Polls
ARC Case Logs
Source Juicer
Package Factory
User Authentication
Community Group on Pages
CRT
Advocates & Sponsors
Becoming a Sponsor
Becoming a CRT Advocate
Charter
RTI nits to avoid
Sponsor Tasks
Developing Solaris
Quality Death Spiral
Developer's Reference
Introduction
Prerequisites
The Source Tree, part 1
The Source Tree, part 2
Building OpenSolaris
Installing and Testing OpenSolaris
Integration Procedure
Best Practices and Requirements
Glossary
findunref and unreferenced files
ONNV Flag Days, Heads Ups, and Project Integration History
Builds 101-105
Builds 106-110
Builds 111-115
Builds 116-120
Builds 121-125
Builds 126-130
Builds 21-25
Builds 26-30
Builds 31-35
Builds 36-40
Builds 41-45
Builds 46-50
Builds 51-55
Builds 56-60
Builds 61-65
Builds 66-70
Builds 71-75
Builds 76-80
Builds 81-85
Builds 86-90
Builds 91-95
Builds 96-100
Installation (from source) Quickstart
Annotated nightly(1) Mail Example
Currently Known Issues
Putback Logs
Development Process
Schedule
Bourne/Korn Shell Coding Conventions
wx