솔라리스에 GDB를 설치할때 configure에러..

rainblow의 이미지

Unix / Linux를 처음 배우고 있는 사람입니다.
책에 나온걸 보고 GDB를 써볼려고 하니까, GDB가 설치되어있지 않더군요.
그래서 GNU사이트에서 다운을 받아서 설치하려고 하는데,
README를 읽고 해보려니 에러가 나네요.

./configure를 실행하니까.. 스크립트가 실행되다가 중간쯤에..

checking if gcc static flag -static works... yes
finding the maximum length of command line arguments... expr: syntax error
expr: syntax error

./../ltconfig: test: argument expected
configure: error: libtool configure failed

위와 같은 에러가 납니다.

왜 이런 에러가 나는걸까요.
OS는 SunOS 5.8 입니다.

아시는분 알려주시면 감사하겠습니다.

cinsk의 이미지

expr에서 에러가 났다면 configure script 문제 같습니다.

자세히는 모르지만, configure가 제대로 동작하려면

GNU bash, GNU m4 등이 설치되어 있어야 할 겁니다.

관련 프로그램들을 먼저 설치하고 해 보시기 바랍니다.

제 생각에는 다음 툴 정도는 설치해 두시는게 좋을 것 같습니다.

GNU bash
GNU m4
GNU autoconf
GNU automake
GNU make
GNU libtool

정재호의 이미지

혹시 expr이 설치가 안됐거나 gnu expr이 아니어서 생기는 문제일 수도 있지 않을까요?
만약에 사용하시는 cpu architecture가 intel이나 sparc이면
속편하게 http://www.sunfreeware.com에 있는 패키지를 써보시는 것도 좋을 것 같은데요.
전에 솔라리스 사용할 때 여기있는거 다 설치하니까 완벽한 gnu 환경이던데...:)

verotas의 이미지

"bash"를 먼저 설치한 다음 다시 시도하면 그 문제는 해결될 겁니다.

configure가 동작하기 위해서 bash, m4 등이 꼭 필요한 것은 아닙니다만,
간혹가다 sh 종류 (sh/ksh/bash)나 기타 개발 환경 등에 영향을 받는 경우가 있습니다.
게다가 gdb는 꽤 방대한 소스로 구성돼 있어 Linux 말고 기타 Unix에서 직접 컴파일해서 쓰려면 쉽지 않습니다.

꼭 직접 컴파일해야하는 이유가 있는게 아니라 한번 써보기 위한 거라면 sunfreeware.com 을 권합니다. 거기서 일단 "pkg-get" 을 설치한 다음, pkg-get gdb 하시면 됩니다.

The good is the enemy of the best.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.