[질문] 솔라리스8에서 gcc 설치난감.. ㅡ.ㅡ

picpic76의 이미지

안녕하세요. kldp 에 이런질문을 하다니 대락 저도 난감합니다만
이곳에 계신분들이 워낙 쟁쟁하셔서!!(앗싸!아부!ㅎㅎ)
초보로써 감히 질문드려봅니다.

보통 솔라리스 8(인텔버전 8) 에 gcc 설치는 네이버같은데 물어보건 어딜물어보곤 비슷하게 정리되지 않은 자료들 뿐인데요
저는 썬프리웨어에서 다운받은걸 기준으로 설치하였습니다.

gcc_small-3.4.2-sol8-intel-local
libiconv-1.8-sol8-intel-local

전 첨에는 이 두개를 받아서(아래꺼는 영문으로 어쩌구 하길래 같이설치하는가하고 일단 받아서 설치했죠.

제 프로파일은 다음과 같구요.

PATH=/usr/local/bin:$PATH
export PATH

LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/openwin/lib:/usr/openwin/bin:/usr/dt/lib:/usr/ucblib
export LD_LIBRARY_PATH

명령어 프롬프트에서 gcc -v 이런거 누르면 잘되는데..
문제는..
헬로월드!! 컴파일하니깐 요런에라가 나옵니다.

[intel-sol8(root):/parkhs/test]# gcc test1.c
Undefined first referenced
symbol in file
print /var/tmp/ccQCeH1z.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

당췌 이해가 안가네요. 그래서혹시나 아.. gcc가 최신버전이어서
그런가 해서 구버전의 아래 두 화일을 다시 받아서 설치했습니다.

gcc-2.95.3-sol8-intel-local
glib-2.2.3-sol8-intel-local

아래꺼는 옆에있는 친구가 함 같이 깔으라구 해서 걍 깔구.ㅎㅎ

했는데도. 똑같은 에라가 나오네요.

뭐 어떻해야할지 조금난감합니다. 조언해주세요~
꾸벅~ ^^

ssik425의 이미지

pkg로 설치하신것 같은데 .. gcc관련 패키지가 2개밖에 없던가요?

용량이 커서 2개로는 모자라지 않을까 싶네요..

혹 heder 패키지나 다른것들이 있는지 찾아보심이 어떨지요?

개발자들의 궁극적 비전은 ?

bluefury의 이미지

gcc***.local.gz 파일을 gzip으로 압축을 푸시고
pkgadd -d gcc.***.local
로 설치 하시고

.profile(.bash shell) 이나 .cshrc (c shell의 경우)에
path에 /usr/local/bin 을 추가해 주시면 됩니다

Why be The Nomal?

FruitsCandy의 이미지

OS설치 하실때 설치 옵션중에 최소말고 전체로 설치하신 다음에 GCC를 설치해보세요.

아지랑이류 초환상 공콤 화랑... 포기하다.. T.T

익명 사용자의 이미지

테스트 소스는 제대로인가요?
올려보시죠.

IsExist의 이미지

Quote:

[intel-sol8(root):/parkhs/test]# gcc test1.c
Undefined first referenced
symbol in file
print /var/tmp/ccQCeH1z.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

print 가 아니라 printf 일거 같네요. 소스에 오타가 있는듯 합니다.

---------
간디가 말한 우리를 파괴시키는 7가지 요소

첫째, 노동 없는 부(富)/둘째, 양심 없는 쾌락
셋째, 인격 없는 지! 식/넷째, 윤리 없는 비지니스

이익추구를 위해서라면..

다섯째, 인성(人性)없는 과학
여섯째, 희생 없는 종교/일곱째, 신념 없는 정치

익명 사용자의 이미지

binutils 때문에 생기는 문제 같은데 sunfreeware.com 에서 binutils 에 있는 설명을 참조해보세요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.