Source RPM 설치에 대한 질문 입니다.

hyper9의 이미지

Source RPM설치라는 것을 한번도 안해봐서요.
이제 공부도 시작하면서 한번 해보려고 합니다.
한편 이미 해보신 분이 조언을 듣는 것도 좋을 것 같아
여기에 질문도 올려보려고요..

요즘 제가 보고 있는 건 libxml2 library인데요.
이 녀석이 뭔가 이상하게 동작을 하는 것 같아서요 ..

Source RPM을 구해서 install을 해보면 어떨까 생각을 했는데요..
일단 첫번째 질문은요 ,,
그냥 기존의 libxml2 rpm을 삭제하고, 새로 compile한 source rpm을 설치하면
되는 걸까요?

두번째 질문은요 ^^
source rpm도 compile하면 .rpm 형식으로 만들어지고 rpm이나 yum command로
설치하게 되는건가요?

세번째 질문은요 ..ㅜㅜ
만일 기존의 libxml2 rpm을 삭제할때 dependency에 걸려있던 것들도
함께 삭제해야 된다면, 나중에 source rpm을 설치하고 나서,,
다시 dependency에 걸려있던 것들을 다시 설치하는 식으로
진행해야 하는걸까요?

네번째 질문은요 ~
기존에 설치되어 있던 libxml2 library보다 source rpm은 version이 좀 더
최신것인데,,설치 및 활용에 문제가 없을까요?

이상의 질문입니다..
경험자 분이 조언을 해주시면 너무너무 감사하겠고요
저도 혼자서 이 문제들에 대한 답을 찾으면 답글로 상황을 update하겠습니다 ^^
그럼,,미리 감사드립니다. ~

hyper9의 이미지

일단 source rpm file을 /usr/src/redhat/SOURCES아래에 설치(?)
를 하고,,README file을 읽어보니,,

다른 package와 마찬가지로

./configure
make
make install

이렇게 하라고 나와 있네요..

그런데 저의 경우는 이 libxml2 package를 compile해서 별도의 installroot에
설치하고 싶은건데..

위와 같이 하면,,그냥 지금 현재의 Compile을 하는 장비의 /lib에 설치가되어버리지
않을까요..?

이런 경우는 어떻게 하는게 좋을까요?

hyper9의 이미지

결과물이 어디에 생겼는지 모르겠네요..

/usr/lib에도 예전 libxml2.so.2.6.28이 그대로 있고요..
뭔가를 잘못한 모양인데,,,조언 부탁드립니다.

keizie의 이미지

왼쪽에 검색칸 있습니다.
http://www.nuno21.net/bbs/board.php?bo_table=server&wr_id=137 도 참조하세요.

hyper9의 이미지

정말 잘 정리된 정보네요...

두가지만 더 여쭤보고 싶은데요 ^^

첫번째는 rpmbuild command를 사용해서 compile할때..library가 설치되는
위치를 별도로 정한 installroot로 하려면 어떻게 해야할까요?
또 이렇게해서 설치되는 경우에 dependency문제는 어떻게 되나요?

두번째는 ,,지난 번에 말씀해 주신 --with-threads의 option을 사용하려면
어떻게 해야할까요?

감사합니다. ^^

댓글 달기

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