Hey there,
i pretty new the arch linux and got stuck with a problem i also had with lubuntu :/
i'm not able to install gitlab from AUR on my Cubietruck because of an error with therubyracer.
i followed the preparing instructions on https://wiki.archlinux.org/index.php/gitlab (i know this not arm specific)
there is no real point about installing gitlab so i tried to figure it out on my own and here is what i've done so far
# install ruby
cd /usr/local/src/
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p353.tar.gz | tar xz
cd ruby-2.0.0-p353/
./configure
make
sudo make install
# install dependencies
install https://aur.archlinux.org/packages/ruby-bundler/
install https://aur.archlinux.org/packages/gitlab-shell/
at this point i tried to install https://aur.archlinux.org/packages/gitlab/ with the following error
$this->bbcode_second_pass_code('', '
linking shared-object v8/init.so
/usr/bin/ld: /usr/local/src/gitlab/src/gitlab-ce.git/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a(api.o): relocation R_ARM_MOVW_ABS_NC against `_ZN2v88internal7Isolate12isolate_key_E' can not be used when making a shared object; recompile with -fPIC
/usr/local/src/gitlab/src/gitlab-ce.git/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:231: recipe for target 'init.so' failed
make: *** [init.so] Error 1
Gem files will remain installed in /usr/local/src/gitlab/src/gitlab-ce.git/vendor/bundle/ruby/2.0.0/gems/therubyracer-0.12.0 for inspection.
Results logged to /usr/local/src/gitlab/src/gitlab-ce.git/vendor/bundle/ruby/2.0.0/gems/therubyracer-0.12.0/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.12.0), and Bundler cannot
continue.
Make sure that `gem install therubyracer -v '0.12.0'` succeeds before bundling.
')
so it tied install therubyracer manually
before that.. its dependencies
install https://aur.archlinux.org/packages/ruby-libv8/ (not sure if this installs the right version!?)
install https://aur.archlinux.org/packages/ruby-ref/
while installing https://aur.archlinux.org/packages/ruby-therubyracer/ i got
$this->bbcode_second_pass_code('', '
ERROR: Error installing therubyracer-0.12.0.gem:
ERROR: Failed to build gem native extension.
linking shared-object v8/init.so
g++: error: /usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a: No such file or directory
g++: error: /usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_snapshot.a: No such file or directory
Makefile:231: recipe for target 'init.so' failed
make: *** [init.so] Error 1
')
so i tried the libv8 version mentioned on the AUR page of ruby-therubyracer and got
$this->bbcode_second_pass_code('', '
[cubie@Cubietruck ruby-therubyracer]$ sudo gem install libv8 -v 3.11.8.12
[sudo] password for cubie:
Fetching: libv8-3.11.8.12.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing libv8:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
creating Makefile
Using compiler: /usr/bin/g++
which: no gmake in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl)
File "build/gyp/gyp", line 12
except ImportError, e:
^
SyntaxError: invalid syntax
make: *** [out/Makefile.ia32] Error 1
/usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.12/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.12/vendor/v8/out/ia32.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
from /usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.12/ext/libv8/location.rb:35:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.12/ext/libv8/location.rb:35:in `verify_installation!'
from /usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.12/ext/libv8/location.rb:26:in `install!'
from extconf.rb:7:in `<main>'
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-Dv8_target_arch=ia32 \
-S.ia32 -Dv8_can_use_vfp_instructions=true
Makefile:216: recipe for target 'out/Makefile.ia32' failed
Gem files will remain installed in /usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.12 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.12/ext/libv8/gem_make.out
')
i also tried some solutions found via goole, e.g.:
"gem install libv8 -- --with-system-v8"
but nothing worked..
now i don't know any thing else to try
is there any guide how the setup gitlab on arm? i'm not able to find a working one
Thanks!