SPATIUM Mobile
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     Android (3)
     Linux (1)
     MacOS (1)
     OS (1)
     Solaris10 (15)
     Windows (1)
     Windows Server (2)
     Windows XP (3)
   ID  
   Password  
  |  
  Location United States
  IP Address 18.191.228.88
2024. 04
123456
78910111213
14151617181920
2122
23
24252627
282930
Category  OperatingSystem, Solaris10
Writer 김태우 Date 2011-07-11 15:31:13 Visit 5384
초기 프로그램 설치

 

Solaris 무료 소프트 웨어 다운 로드 사이트, http://www.sunfreeware.com

패키지 다운로드, 접속 방법

1. 웹 브라우저에서 http://www.sunfreeware.com 에 접속하여, 왼쪽 프레임에  해당하는 플랫폼 선택
    예 )  x86/Solaris 10    // 인텔 CPU 에 설치된 최신 솔라리스 10 버전에 해당하는 소프트웨어

2. solaris 터미널 환경에서 ftp 명령어로 접속

# ftp
# open www.sunfreeware.com
# 사용자 명 :  anonymous
# 암호 : 그냥 엔터
#
# ls -la     // 디렉토리 목록, 디렉토리 목록을 보고 해당되는 플랫품 SW 를 찾아가야 함
# cd pub
# cd freeware
# cd i386
# cd 10
# pwd
257 "/pub/freeware/i386/10" is current directory.
# ls gcc*    // gcc 목록 중 해당되는 것 다운로드
# get gcc-3.4.6-sol10-x86-local.gz
# get libiconv-1.13.1-sol10-x86-local.gz
# get libintl-3.4.0-sol10-x86-local.gz
# get make-3.82-sol10-x86-local.gz

패키지 설치 ( 위에서 받은 패키지 설치 )

# gzip -d gcc-3.4.6-sol10-x86-local.gz    // 압축해제
# gzip -d libiconv-1.13.1-sol10-x86-local.gz    // 압축해제
# gzip -d libintl-3.4.0-sol10-x86-local.gz     // 압축해제
# gzip -d make-3.82-sol10-x86-local.gz     // 압축해제

#
# pkgadd -d libiconv-1.13.1-sol10-x86-local    // 먼저 설치( all, y 입력 ), 디폴트 /usr/local 에 설치
# pkgadd -d gcc-3.4.6-sol10-x86-local     // 이후 설치, 기본 디폴트 /usr/local 에 설치
# pkgadd -d libintl-3.4.0-sol10-x86-local    // 설치, make 설치시 필요
# pkgadd -d make-3.82-sol10-x86-local  // 설치

#

PATH 설정

# vi /.profile    // gcc 를 path 에 추가, .profile 은 /etc/skel/ 폴더에 샘플 존재
...
..
PATH =$PATH:/usr/local/bin     // path를 추가
#
# vi /etc/.login    // path 를 추가
....
..

setenv PATH {$PATH}:/usr/local/bin/     // 마지막 라인에 추가


로그인 이후 적용됨,  .profile 은 각 계정의 홈 디렉토리(~)에 생성해야 함

재 로그인 이후 gcc 테스트

# cd ~      // 홈디렉토리로 이동
# vi hello.c
    #include
    int main() {
        printf("Hello World!");
        return 0;
    }
#
# gcc hello.c
# ls      // a.out. 가 생성됨, 특정 목적 파일을 생성할 경우 -o  옵션 사용
# a.out    // 실행, 출력 결과가 나타남

 

ㅇㅇㅇ

 

Tags  solaris, solaris init program, gcc, libiconv
  Relation Articles
[OperatingSystem-Solaris10] Solaris 사용자 관련(생성, 변경, 삭제) (2012-06-04 11:21:18)
[OperatingSystem-Solaris10] apache2 설치 및 실행 (2011-08-22 11:17:00)
[OperatingSystem-Solaris10] 데몬, 서버 프로세스 개념 (2011-08-22 09:53:54)
[OperatingSystem-Solaris10] mysql 소스 설치 (2011-07-21 15:54:39)
[OperatingSystem-Solaris10] SMF (2011-07-21 09:34:18)
[OperatingSystem-Solaris10] 소스 설치 시 configure, make, make install (2011-07-18 10:01:00)
[OperatingSystem-Solaris10] 초기 프로그램 설치 (2011-07-11 15:31:13)
[OperatingSystem-Solaris10] 서버 인스톨 후, 초기 설정 (2011-07-07 09:49:55)
[OperatingSystem-Solaris10] Zone 구성 (2011-07-05 20:55:17)
[OperatingSystem-Solaris10] IP setting (2011-07-04 20:31:54)
  Your Opinion
Member ID
150 letters
Copyright (C) SPATIUM. All rights reserved.
[SPATIUM]WebMaster Mail