Changes between Initial Version and Version 1 of ArchLinuxArmInstallation


Ignore:
Timestamp:
2013-05-03T05:00:04Z (12 years ago)
Author:
igor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ArchLinuxArmInstallation

    v1 v1  
     1This is a history of my attempts at running tahoe-lafs in a fresh pogoplug v4 with archlinuxarm:
     2
     3Preparation:
     4{{{
     5# #Can't go straight to building v1.10 from source without gcc, so go for the AUR-based package to get dependencies installed
     6# #Install an AUR helper, python and build tools
     7# pacman -S yaourt python2 gcc patch
     8.. snip ..
     9# #Make 'python2' available as 'python'
     10# ln -s /usr/bin/python2 /usr/local/bin/python
     11}}}
     12
     13Installation:
     14{{{
     15# yaourt -S tahoe-lafs
     16}}}
     17
     18This is the first list:
     19{{{
     20==> tahoe-lafs dependencies:
     21 - net-tools (already installed)
     22 - python2 (already installed)
     23 - python2-zope-interface>=3.6.5 (package found)
     24 - twisted (package found)
     25 - python2-pyasn1 (package found)
     26 - python2-crypto (package found)
     27 - pycryptopp (building from AUR)
     28 - nevow (building from AUR)
     29 - python2-foolscap (package found)
     30 - python2-simplejson (package found)
     31 - zfec (building from AUR)
     32 - python2-pyopenssl (package found)
     33 - pyutil (building from AUR)
     34 - python2-argparse (building from AUR)
     35 - zbase32 (building from AUR)
     36 - python2-mock>=0.6.0 (building from AUR)
     37}}}
     38
     39Arch will then try to install each of these. Some packages do not list 'arm' as a valid/supported architecture, so you will have to manually edit the PKGBUILD file:
     40
     41{{{
     42==> Continue building python2-mock ? [Y/n]
     43==> --------------------------------------
     44==>
     45==> Building and installing package
     46==> WARNING: Building package as root is dangerous.
     47 Please run yaourt as a non-privileged user.
     48==> ERROR: python2-mock is not available for the 'arm' architecture.
     49    Note that many packages may need a line added to their PKGBUILD
     50    such as arch=('arm').
     51==> ERROR: Makepkg was unable to build python2-mock.
     52==> Restart building python2-mock ? [y/N]
     53==> -------------------------------------
     54==> y
     55==> Edit PKGBUILD ? [Y/n] ("A" to abort)
     56==> ------------------------------------
     57==> y
     58
     59Please add $EDITOR to your environment variables
     60for example:
     61export EDITOR="vim" (in ~/.bashrc)
     62(replace vim with your favorite editor)
     63
     64==> Edit PKGBUILD with:  vim
     65
     66.. [edited PKGBUILD and manually added 'arm' to the architectures] ..
     67}}}
     68
     69The same happened to the following packages:
     70{{{
     71pycryptopp
     72zbase32
     73zfec
     74}}}
     75
     76Eventually, all the dependencies will be installed. But my tahoe-lafs installation fails to complete because of some error:
     77{{{
     78==> Continue building tahoe-lafs ? [Y/n]
     79==> ------------------------------------
     80==>
     81.. snip ..
     82==> Tidying install...
     83  -> Purging unwanted files...
     84  -> Compressing man and info pages...
     85  -> Stripping unneeded symbols from binaries and libraries...
     86==> Creating package "tahoe-lafs"...
     87  -> Generating .PKGINFO file...
     88  -> Generating .MTREE file...
     89  -> Compressing package...
     90/usr/bin/makepkg: line 1893:  5902 Killed                  ${COMPRESSXZ[@]:-xz -c -z -}
     91bsdtar: Write error
     92==> ERROR: Failed to create package file.
     93==> ERROR: Makepkg was unable to build tahoe-lafs.
     94==> Restart building tahoe-lafs ? [y/N]
     95==> -----------------------------------
     96==>
     97}}}
     98
     99And, as normal user:
     100{{{
     101.. snip ..
     102==> Tidying install...
     103  -> Purging unwanted files...
     104  -> Compressing man and info pages...
     105  -> Stripping unneeded symbols from binaries and libraries...
     106==> Creating package "tahoe-lafs"...
     107  -> Generating .PKGINFO file...
     108  -> Generating .MTREE file...
     109  -> Compressing package...
     110xz: (stdin): Cannot allocate memory
     111bsdtar: Write error
     112==> ERROR: Failed to create package file.
     113==> ERROR: Makepkg was unable to build tahoe-lafs.
     114==> Restart building tahoe-lafs ? [y/N]
     115==> -----------------------------------
     116==>
     117}}}
     118
     119Will try in an arm virtual machine with more memory. Stay tuned.