top 컴파일 해보신분.. 계신가요..

leolo의 이미지

top 코드를 리눅스 7.2에서 컴파일하고자 합니다.

해보신분 계신가요..

어떻게 하는지 좀 설명 부탁드립니다.

File attachments: 
첨부파일 크기
Binary Data top-3.4.tar.gz204.43 KB
feanor의 이미지

우선, 리눅스 7.2라는 것도 있나요? 리눅스 커널 2.6.6이 나왔다고 geekforum에 올라온 글은 읽었습니다만...

리눅스에서 컴파일하려면 top 3.5 버전을 받아야 합니다. 3.4beta1에서 리눅스 지원이 추가되었지만 3.4대에서는 컴파일이 잘 되지 않았던 것으로 기억합니다.

top의 홈페이지는 http://unixtop.org/ 입니다. Download에서 3.5를 받으세요.

받은 다음에는 INSTALL 파일에서 시키는 대로 하면 됩니다. 상당히 길어서 읽기가 귀찮지요. 다음과 같이 합니다.

./Configure (csh이 있어야 실행됩니다!)

What module is appropriate for this machine? 이라고 물어봅니다. linux 또는 linuxthr 을 선택합니다.

나머지는 모두 엔터 쳐도 됩니다. 질문을 읽어보시고 바꾸고 싶은 것이 있으면 바꿔주시구요.

make 하기 전에, curses의 개발용 패키지를 설치해야 합니다. libcurses.so가 들어 있는 패키지입니다.

그리고 make 하면 컴파일이 됩니다. 프로그램이 작아서 아주 금방 됩니다. ./top 으로 잘 돌아가는지 확인해보고 make install 하면 아까 ./Configure 에서 설정한 곳에 설치됩니다.

--feanor

feanor의 이미지

그냥 top 프로그램을 원하시는 거라면, 거의 모든 POSIX 환경에서 돌아가는 unixtop.org의 top 대신, 리눅스 용으로 다시 만든 top을 설치하는 것도 좋은 생각입니다.

http://procps.sourceforge.net/

가장 최근 릴리즈를 받아서 풀고, make 하면 컴파일됩니다. (오직 리눅스에서만 컴파일되도록 만들었기 때문에 ./configure 과정이 필요 없습니다.)

--feanor

댓글 달기

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