HP-UX gcc 빌드

zozond의 이미지

HP-UX 서버 gcc 버전이 4.2.3. 밖에 안나와 있어 gcc 버전을 업그레이드 해야 합니다.

그래서 gcc-5.1.0.tar.gz를 다운로드 받아 설치를 시작 했습니다.

그런데 ./configure를 하는 도중에 계속 에러가 나네요...

에러내용은 이렇게 나옵니다.

configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files. They may be located in separate packages.

문제는 에러 내용에서 나오는 GMP, MPFR, MPC는 모두 설치되어있고, 버전도 요구되는것 보다 높습니다.
무언가 잘못된것이 있나 싶어 GMP, MPFR, MPC의 버전도 내려서 설치해 보고,
./configure 할때 옵션도 주었는데, 결국 똑같은 에러가 나옵니다.

./configure --enable-languages=c,c++ --with-gmp-lib=/usr/local/lib/hpux64 --with-gmp-include=/usr/local/include \ --with-mpfr-lib=/usr/local/lib/hpux64 --with-mpfr-include=/usr/local/include \ --with-mpc-lib=/usr/local/lib/hpux64 --with-mpc-include=/usr/local/include

<설치되어 있는 프로그램들 입니다> # Product(s) not contained in a Bundle: # autoconf 2.69 autoconf automake 1.16.1 automake bzip2 1.0.6 bzip2 gcc 4.2.3 gcc gettext 0.19.8.1 gettext gmp 5.0.5 gmp libgcc 4.2.3 libgcc libiconv 1.15 libiconv libtool 2.4.6 libtool m4 1.4.18 m4 make 4.2.1 make mpc 1.0.1 mpc mpfr 3.1.2 mpfr perl 5.10.1 perl sed 4.5 sed tar 1.30 tar unzip 5.52 unzip zlib 1.2.8 zlib

이 에러를 어떻게 해야 잡을 수 있을까요?

고수님들의 의견 한마디 부탁 드립니다..

세벌의 이미지

왕초보인데 컴파일러를 컴파일?
많은 어려움이 예상되네요....

HP-UX 에 포팅을 왜 하려는지 궁금합니다.
HP-UX 에 포팅을 하는 대신에 다른 방법으로 문제를 해결할 방법은 없는 건가요?

제목에 왕초보 라는 표현은 안 쓰는 게 좋겠습니다. 그 표현 쓴다고 더 자세한 답변을 받는다는 보장도 없고...

zozond의 이미지

이번에 회사에서 코드를 하나 짰는데, 그걸 서버용으로 포팅을 해야 해서요.

근데 포팅을 처음 하는거다보니 곤란한 점이 많아서 글 올려 봤습니다.

왕초보는 이제 빼도록 할게요ㅎㅎ

 의 이미지

Quote:
If you obtained GMP, MPFR and/or MPC from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages.

이 부분을 한번 체크해 보시는 게 좋을 것 같은데요.

그건 그렇고, GMP, MPFR 및 MPC이 문제가 되는 거라면 Combined tree build를 시도해 보는 것도 좋은 방법입니다.

https://raghunathlolur.wordpress.com/2014/06/30/combined-tree-build-of-gcc-binutils-and-libraries/

zozond의 이미지

링크 감사합니다. 한번 시도해 보도록하겠습니다.

아이온@Naver의 이미지

download_prerequisite은 필요한 라이브러리 소스를 받아서 소스 컴파일을 한 다음 그걸 gcc 빌드에 사용하는 것 같습니다. 그걸 시도해 보세요. 제 기억엔 소스 코드 트리의 탑 레벨이나 빌드 디렉토리 안에서 저 스크립트를 수행하면 빠진 라이브러리의 소스를 받아 두고 나중에 gcc 빌드 하기 전에 먼저 빌드했던 것 같습니다. 그리고 REDHAT linux 등은, 예컨대 libXXX 말고 libXXX-dev를 깔아야 된다거나 하는 경우가 있는 듯 합니다. 아마도 필요한 패키지 말고 다른 게 설치되지 않았나 모르겠네요.

댓글 달기

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