티스토리 뷰

삽질을 엄청하며 설치했는데, 나를 위해 일단 참고 사이트와 히스토리만 남겨둔다...


기존에 우성군의 NAS블로그를 참고하여 많은 도움을 받았는데, 기존에 설치한것들 때문에 충돌이 일어나는 듯 하였다.


원래는 /etc/apt/sources.list 파일내용이 아래와 같이 2개가 아니고, 위에것만 있어야 한다고 한다.

deb http://archive.debian.org/debian/ squeeze main #주소가 ftp.us -> archive로 바뀜

deb http://ftp.us.debian.org/debian/ wheezy main #원래 이줄은 없어야 하지만(벽돌이 될 수 있다고 한다) 이미 사용하여 설치한 파일들이 있어 꼬인상태. 다시 사용하고 나서 해결되었다. (make시 cpp, gcc 문제)


우성군님의 블로그에서 1.0.24버전을 설치하면 쉽게 되지만, 자잘한 문제들이있고 1.1.5버전이 잘 된다고 해서 시도해보았다.


참고 사이트



히스토리 - 별의별 짓을 다하느라 히스토리가 어지럽다. 위에 핵심 참고사이트만 이용할 수 있도록 한다.


  349  vi /etc/apt/sources.list

  350  wget https://dl.dropbox.com/u/19024553/libc_for_02.11.09-053.tar

  351  ls

  352  mkdir lib

  353  mv libc_for_02.11.09-053.tar lib

  354  ls

  355  cd lib

  356  ls

  357  tar -xvf libc_for_02.11.09-053.tar 

  358  ls

  359  cd libc

  360  ls

  361  cd libc

  362  cd libc-for-02.11.09-053/

  363  ls

  364  dpkg -i --force-overwrite libc-bin_2.11.3-3_powerpc.deb

  365  dpkg -i --force-overwrite libc6_2.11.3-3_powerpc.deb

  366  dpkg -i --force-overwrite libc6-ppc64_2.11.3-3_powerpc.deb

  367  apt-get -f install

  368  apt-get update

  369  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys

  370  apt-key adv --keyserver keyserver.ubuntu.com

  371  apt-get install make

  372  apt-get install make --fix-missing

  373  vi /etc/apt/sources.list

  374  apt-get update

  375  vi /etc/apt/sources.list

  376  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AED4B06F473041FA

  377  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 64481591B98321F9

  378  apt-get update

  379  apt-get install libavformat57

  380  apt-get install make

  381  apt-get install gettext

  382  apt-get -f install

  383  apt-get update

  384  apt-get -y install libexif-dev 

  385  apt-get -y install libexif12

  386  apt-get -y install libexif-dev 

  387  apt-get install libexif12

  388  apt-get upgrade libexif12

  389  ls

  390  apt-get -y install libexif-dev 

  391  apt-get rm libexif12

  392  apt-get remove libexif12

  393  apt-get -y install libexif-dev 

  394  apt-get -y install libjpeg-dev 

  395  apt-get -y install libid3tag*

  396  apt-get -y install libFLAC-dev

  397  apt-get -y install libvorbis-dev

  398  apt-get -y install libsqlite3-dev

  399  apt-get -y install libavformat-dev

  400  wget http://downloads.sourceforge.net/project/minidlna/minidlna/1.1.5/minidlna-1.1.5.tar.gz?r=https%3A%2F

  401  ls

  402  ls

  403  pwd

  404  tar -zxvf minidlna-1.1.5.tar.gz 

  405  ls

  406  cd minidlna-1.1.5

  407  ls

  408  cd tmp

  409  ls

  410  cd /tmp

  411  ls

  412  cd ~

  413  ls

  414  cd lib

  415  ls

  416  cd libc-for-02.11.09-053/

  417  ls

  418  mv minidlna-1.1.5 /tmp/minidlna

  419  cd tmp

  420  ls

  421  cd /tmp/minidlna

  422  ls

  423  cd ..

  424  ls

  425  chmod 777 minidlna

  426  cd minidlna

  427  cd ..

  428  ls

  429  chmod -R 777 minidlna

  430  cd minidlna

  431  ls

  432  ./configure

여기서부터 혼돈의 시작... gcc가 없다고 한다. 그래서 gcc를 설치하려고 하면 막 아래와 같은 에러들이 나온다.

gcc없이 설치를 해보기 위해 powerpc용 deb파일들을 직접 받아 설치해보지만 모두 헛짓이었다..

MyBookLive:/tmp/minidlna# apt-get install gcc

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:


The following packages have unmet dependencies:

 gcc : Depends: gcc-4.4 (>= 4.4.5-1~) but it is not going to be installed

E: Broken packages

MyBookLive:~# apt-get -f install

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Correcting dependencies... failed.

The following packages have unmet dependencies:

 libgcc1 : Depends: gcc-4.4-base (= 4.4.5-8) but 4.4.7-2 is installed

 libgomp1 : Depends: gcc-4.4-base (= 4.4.5-8) but 4.4.7-2 is installed

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

E: Unable to correct dependencies

  433  apt-get install make

  434  apt-get install gcc

  435  apt-get remove gcc

  436  ./configure

  437  gcc

  438  apt-get install gcc

  439  apt-get install make

  440  apt-get autoremove

  441  apt-get install make

  442  apt-get install gcc

  443  apt-get --fix-broken

  444  apt-get check

  445  apt-get check gcc

  446  apt-get -f

  447  apt-get -f install gcc

  448  apt-get -f install g++

  449  apt-get install g++-4.4

  450  apt-get install g++-4.4

  451  aptitude install build-essential

  452  ./configure

  453  rpm -qa|grep gcc

  454  apt-get install gcc

  455  aptitude install build-essential

  456  cd /var/cache/apt/archives/

  457  ls

  458  ls dpkg_1.15.11_powerpc.deb

  459  apt-get install make

  460  ./configure

  461  touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

  462  touch configure

  463  touch Makefile.in

  464  touch config.h.in

  465  make

  466  make check

  467  make install

  468  ./configure

  469  touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

  470  touch configure

  471  touch Makefile.in

  472  touch config.h.in

  473  make

  474  make check

  475  make install

  476  cd /tmp/miin

  477  cd /tmp/minidlna

  478  ls

  479  ./configure

  480  touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

  481  touch configure

  482  touch Makefile.in

  483  touch config.h.in

  484  make

  485  make check

  486  make installapt-get install gcc

  487  apt-get install gcc

  488  apt-get remove gcc

  489  apt-get remove g++

  490  apt-get install build-essential

  491  apt-get install aptitude

  492  ls

  493  ./configure

  494  gcc

  495  g++

  496  apt-get install gcc

  497  apt-get -f install

  498  apt-get -h

  499  apt-get autoclean

  500  apt-get -f install

  501  apt-get autoclean

  502  apt-get update

  503  apt-get install gcc

  504  apt-get install libapt-pkg4.10

  505  apt-get -f install

  506  aptitude

  507  dpkg -i /var/cache/apt/archives/aptitude_0.6.3-3.2+squeeze1_powerpc.deb

  508  dpkg -i --force-overwrite libc-bin_2.11.3-3_powerpc.deb

  509  dpkg -i --force-overwrite /var/cache/apt/archives/aptitude_0.6.3-3.2+squeeze1_powerpc.deb

  510  aptitude

  511  apt-get -f install

  512  apt

  513  apt-get

  514  apt-get -f install

  515  apt-get autoclean

  516  apt-get update

  517  cd ~

  518  ls

  519  cd lib

  520  ls

  521  cd libc

  522  cd libc-for-02.11.09-053/

  523  ls

  524  sudo dpkg -i --force-overwrite libc-bin_2.11.3-3_powerpc.deb

  525  sudo dpkg -i --force-overwrite libc6_2.11.3-3_powerpc.deb

  526  sudo dpkg -i --force-overwrite libc6-ppc64_2.11.3-3_powerpc.deb

  527  apt-get -f install

  528  apt-get remove wd-nas

  529  dpkg -r wd-nas

  530  apt-get -f install

  531  cd /var/cache/apt/archives/

  532  cd ~

  533  dpkg -i /var/cache/apt/archives/apt_0.8.10.3+squeeze1_powerpc.deb

  534  apt-get remove wd-nas

  535  apt-get install libapt-pkg4.10

  536  apt

  537  apt-get remove wd-nas

  538  apt-get -f install wd-nas

  539  apt-get -f install

  540  fsck

  541  apt-get --print-uris -y --force-yes --reinstall -d install apt

  542  apt

  543  apt-get -f install

  544  apt-get install make

  545  wget http://b3.update.excito.org/pool/main/a/apt/apt_0.8.10.3+squeeze1_powerpc.deb

  546  ls

  547  dpkg -i --force-overwrite apt_0.8.10.3+squeeze1_powerpc.deb

  548  apt-get -f install

  549  cd /tmp/minidlna

  550  ls

  551  ./configure

  552  apt-get install make

  553  apt-get install gcc

  554  apt-get install build-essential

  555  apt-get install build-essential 

  556  vi /etc/apt/sources.list

  557  dpkg -C

  558  dpkg --configure -a

  559  apt-get install gcc=4.4.3

  560  apt-get install gcc

  561  apt-get install gcc=4.4.5

  562  apt-get install gcc=4.4.5-10

  563  apt-get --fix-missing install build-essentials

  564  vi /etc/apt/sources.list

  565  uname -r

  566  aptitude update

  567  aptitude install gcc

  568  aptitude install gcc

  569  aptitude install gcc

  570  apt-get -f install

  571  ./configure

  572  apt-get install gcc

  573  gcc

  574  apt-get remove gcc

  575  apt-get install gcc

  576  apt-get remove gcc-4.4

  577  apt-get install gcc

  578  apt-get -f install

  579  apt-get autoclean

  580  apt-get -f install

  581  gcc

  582  apt-get install make

  583  apt-get install gettextmake

  584  make

  585  ./configure

  586  cd ~

  587  wget http://ftp.kr.debian.org/debian/pool/main/g/gcc-defaults/gcc-powerpc-linux-gnu_5.3.1-3_ppc64el.deb

  588  ls

  589  dpkg -i gcc-powerpc-linux-gnu_5.3.1-3_ppc64el.deb 

  590  wget http://ftp.kr.debian.org/debian/pool/main/g/gcc-4.4/gcc-4.4-base_4.4.7-2_powerpc.deb

  591  ls

  592  dpkg -i gcc-powerpc-linux-gnu_5.3.1-3_ppc64el.deb 

  593  dpkg -i gcc-4.4-base_4.4.7-2_powerpc.deb 

  594  gcc

  595  apt-get -f install

  596  rm gcc-powerpc-linux-gnu_5.3.1-3_ppc64el.deb 

  597  gcc

  598  find / -name gcc

  599  /usr/lib/gcc -v

  600  cd /usr/lib/gcc

  601  ls

  602  cd powerpc-linux-gnu/

  603  ls

  604  cd 4.4.2/

  605  ls

  606  ls

  607  cd ..

  608  tree

  609  cd 4.3

  610  ls

  611  cd ..

  612  ls

  613  cd 4.3.1

  614  ls

  615  cd ..

  616  cd..

  617  cd ..

  618  ls

  619  cd spu

  620  ls

  621  cd 4.4

  622  ls

  623  cd .

  624  cd.

  625  cd ...ls

  626  ls

  627  cd ..

  628  ls

  629  cd ~

  630  ls

  631  apt-get -f install

  632  apt-get clean

  633  apt-get update

  634  apt-get dist-upgrade

  635  ls

  636  dpkg -h

  637  ls

  638  dpkg -r gcc-4.4-base_4.4.7-2_powerpc.deb 

  639  dpkg -r gcc-4.4-base

  640  wget http://ftp.kr.debian.org/debian/pool/main/g/gcc-4.7/libgomp1_4.7.2-5_powerpc.deb

  641  ls

  642  dpkg -i libgomp1_4.7.2-5_powerpc.deb 

  643  ls

  644  apt-get -f install

  645  wget http://ftp.kr.debian.org/debian/pool/main/g/gcc-4.7/libgcc1_4.7.2-5_powerpc.deb

  646  ls

  647  dpkg -i libgcc1_4.7.2-5_powerpc.deb 

  648  apt-get -f install

  649  ls

  650  cd /tmp/minidlna

  651  ls

  652  ./configure

  653  cat config.log 

  654  ls

  655  gcc

  656  apt-get install gcc

  657  apt-get install cpp

  658  wget https://packages.debian.org/wheezy/powerpc/cpp-4.4/download

  659  wget http://ftp.kr.debian.org/debian/pool/main/g/gcc-4.4/cpp-4.4_4.4.7-2_powerpc.deb

  660  ls

  661  rm cpp-4.4_4.4.7-2_powerpc.deb 

  662  cd ~

  663  ls

  664  wget http://ftp.kr.debian.org/debian/pool/main/g/gcc-4.4/cpp-4.4_4.4.7-2_powerpc.deb

  665  ls

  666  dpkg -i cpp-4.4_4.4.7-2_powerpc.deb 

  667  apt-get install libgmp10

  668  wget http://ftp.kr.debian.org/debian/pool/main/g/gmp/libgmp10_6.1.0+dfsg-2_powerpc.deb

  669  dpkg -i libgmp10_6.1.0+dfsg-2_powerpc.deb 

  670  ls

  671  cpp

  672  gcc

  673  find / -name gcc

  674  aptitude install gcc

  675  gcc

  676* cp

  677  aptitude install gcc-4.2

  678* aptitude install gcc-4.

  679  aptitude install gcc

  680  cpp

  681  gcc

  682  aptitude update

  683  /opt/bin/ipkg install gcc

  684  wget http://mybookworld.wikidot.com/local--files/optware/setup-whitelight.sh

  685  ls

  686  sh setup-whitelight.sh 

  687  /opt/bin/ipkg install gcc

  688  /opt/bin/ipkg update

  689  cd /opt/bin

  690  ls

  691  ls -al

  692  ./ipkg

  693  ipkg install mc

  694  ./ipkg

  695  cd ~

  696  ls

  697  apt-get -f install

  698  apt-get autoclean

  699  apt-get -f install

  700  apt-get install gcc

  701  dpkg -i minidlna_1.1.5+dfsg-3_powerpc.deb 

  702  wget http://ftp.kr.debian.org/debian/pool/main/f/ffmpeg/libavformat57_3.0.2-2_powerpc.deb

  703  ls

  704  dpkg -i libavformat57_3.0.2-2_powerpc.deb

  705  apt-get install make

  706  apt-get -f install

  707  apt-get -f install

  708  apt-get install make

  709  ls

  710  cd /tmp/minidlna

  711  ls

  712  ./configure

  713  /usr/bin/sort

  714  apt-get install make

  715  ls

  716  cd ~

  717  ls

  718  cd lib

  719  ls

  720  cd libc-for-02.11.09-053/

  721  ls

  722  dpkg -i --force-overwrite libc-bin_2.11.3-3_powerpc.deb

  723  dpkg -i --force-overwrite libc6_2.11.3-3_powerpc.deb

  724  dpkg -i --force-overwrite libc6-ppc64_2.11.3-3_powerpc.deb

  725  apt-get -f install

  726  apt-get update

  727  apt-get -y install libavutil-dev libavcodec-dev libavformat-dev libflac--force-yesdev 

  728  apt-get -y install libavutil-dev libavcodec-dev libavformat-dev libflac-dev --force-yes

  729  apt-get -y install libvorbis-dev libid3tag0-dev libexif-dev --force-yes

  730  apt-get -y install libjpeg62-dev libsqlite3-dev --force-yes

  731  vi /etc/apt/sources.list

  732  apt-get install gcc

도저히 해결이 안되어서 맨위에 언급했듯이 벽돌행을 감행하고 sources.list를 추가. 여기서부터 모든 것들이 해결되었다.

  733  vi /etc/apt/sources.list

  734  apt-get update

  735  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553

  736  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6FB2A1C265FFB764

  737  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010

  738  apt-get update

  739  apt-get install gcc

  740  apt-get install make

  741  make

  742  gcc

  743  apt-get install gcc

  744  gcc

  745  cd /tmp/minidlna

  746  ls

  747  ./configure

  748  apt-get install --reinstall coreutils

  749  update-alternatives

  750  update-alternatives sort

  751  sort

  752  ./configure

  753  touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

  754  touch configure

  755  touch Makefile.in

  756  touch config.h.in

  757  make

  758  make check

  759  make install

  760  minidlnad 

  761  minidlnad -s

  762  minidlnad -h

  763  cp minidlna.conf /etc/

  764  vi /etc/minidlna.conf

  765  cd /shares/

  766  ls

  767  cd Public/

  768  ls

  769  pwd

  770  vi /etc/minidlna.conf

  771  /usr/local/sbin/minidlnad -R

  772  update-rc.d minidlna defaults

  773  netstat -nlp | grep minidlnad

중복파일 db생성을 막는 패치 적용

  774  cd /tmp/minidlna

  775  ls

  776  wget https://sourceforge.net/p/minidlna/patches/125/attachment/inotify_db_dup.patch

  777  ls

  778  wget https://sourceforge.net/p/minidlna/patches/125/attachment/inotify_db_dup.patch --no-check-certificate

  779  patch -p1 < inotify_db_dup.patch 

  780  ./configure

  781  touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

  782  touch configure

  783  touch Makefile.in

  784  touch config.h.in

  785  make

  786  make check

  787  make install

  788  /usr/local/sbin/minidlnad -R -f /etc/minidlna.conf

  789  vi /etc/minidlna.conf

  790  update-rc.d minidlna defaults

'IT > 자료실' 카테고리의 다른 글

MacDrive 10.3.0.4 Pro Trial  (0) 2017.04.16
Windows 8 Startmenu 시작버튼 프로그램  (0) 2015.11.15
AIMP3에서 노래 가사 보는 방법  (3) 2015.07.24
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함