Problems installing gitlab

This forum is for discussion about general software issues.

Problems installing gitlab

Postby derKai » Sat Feb 15, 2014 4:49 pm

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!
derKai
 
Posts: 5
Joined: Sat Feb 15, 2014 4:41 pm

Re: Problems installing gitlab

Postby getty232 » Sat Feb 15, 2014 5:14 pm

https://aur.archlinux.org/packages/?O=0&K=gitlab
Download src & tarball ,unpack both, copy tarball files into src folder, edit PKGBUILD, makepkg -s, then use "pacman -U XYYXY-arm.pkg.tar.xz" to install package.
getty232
 
Posts: 7
Joined: Fri Feb 14, 2014 12:04 pm

Re: Problems installing gitlab

Postby derKai » Sat Feb 15, 2014 7:03 pm

edit PKGBUILD how?

thanks!
derKai
 
Posts: 5
Joined: Sat Feb 15, 2014 4:41 pm

Re: Problems installing gitlab

Postby getty232 » Sat Feb 15, 2014 8:40 pm

https://wiki.archlinux.org/index.php/AUR
$this->bbcode_second_pass_quote('', 'Q'): How do I make a PKGBUILD?
A: The best resource is Creating Packages. Remember to look in AUR before creating the PKGBUILD as to not duplicate efforts.

https://wiki.archlinux.org/index.php/PKGBUILD#arch

change from
$this->bbcode_second_pass_quote('', 'a')rch=('i686' 'x86_64')


to
$this->bbcode_second_pass_quote('', 'a')rch=('armv7h' 'i686' 'x86_64' )




or 'armv6h' for arm v6 devices
or 'arm' for arm v5 devices

http://ftp.f3l.de/archlinuxarm/

What goes into each platform you can see here:
http://archlinuxarm.org/platforms
getty232
 
Posts: 7
Joined: Fri Feb 14, 2014 12:04 pm
Top

Re: Problems installing gitlab

Postby derKai » Sun Feb 16, 2014 1:39 am

All packages i need have arch=('any') .. which should work.. even an arm?
https://aur.archlinux.org/packages/ruby-bundler/
https://aur.archlinux.org/packages/gitlab-shell/
https://aur.archlinux.org/packages/ruby-libv8/
https://aur.archlinux.org/packages/ruby-ref/
https://aur.archlinux.org/packages/ruby-therubyracer/
https://aur.archlinux.org/packages/gitlab/

therubyracer is complaining about missing .a files:

$this->bbcode_second_pass_code('', '
linking shared-object v8/init.so
g++: error: /usr/lib/ruby/gems/2.1.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/lib/ruby/gems/2.1.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:232: recipe for target 'init.so' failed
make: *** [init.so] Error 1
')

i tried to rebuild libv8 with arch=('armv7h' 'i686' 'x86_64' ) and installed the armv7h... xz
-> same error while running makepkg for therubyracer
derKai
 
Posts: 5
Joined: Sat Feb 15, 2014 4:41 pm

Re: Problems installing gitlab

Postby moonman » Sun Feb 16, 2014 2:05 am

https://aur.archlinux.org/packages/ruby-libv8/ is not maintained anymore. Looks like the PKGBUILD needs to be modified to include the .a file.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Problems installing gitlab

Postby derKai » Sun Feb 16, 2014 9:55 am

can you tell how to get these files?

maybe there is another solution:
http://www.gehirnlos.com/2013/05/

he says one could install nodejs and remove the therubyracer from gitlab gemfile and gemfile.lock
but i have no glue how to modify the PKGBUILD to do that?
derKai
 
Posts: 5
Joined: Sat Feb 15, 2014 4:41 pm

Re: Problems installing gitlab

Postby raumzeit » Thu Feb 20, 2014 10:42 am

installing nodejs is exactly what I did to get gitlab running on arm5.
But I installed everything by hand, no PKGBUILD involved.
Just remove therubyracer from the gemfile and gemfile.lock.

In your PKGBUILD you could use 'sed' or apply a patch to change both of the above files in the prepare() section of the PKGBUILD...

[edit]
Btw. therubyracer will only compile on x86 (32 or 64 bit), there is no workarround to get that compiled on ARM as far as I know. So installing nodejs is the ONLY solution I am aware of to get gitlab running on an ARM device
Acer CB5-311, Asus Flip, Tinker Board, Samsung ARM Chromebook, NSA 325, ix4-300d, WandBoard Quad, Raspberry Pi B, BeagleBoard ...and a dead Pandaboard :sad:
raumzeit
 
Posts: 73
Joined: Mon Oct 17, 2011 8:37 pm
Location: Vienna AT

Re: Problems installing gitlab

Postby derKai » Sat Feb 22, 2014 8:23 am

thanks! i'll try that and keep you posted.
derKai
 
Posts: 5
Joined: Sat Feb 15, 2014 4:41 pm


Return to General

Who is online

Users browsing this forum: No registered users and 19 guests