articulate / biplane

A configuration-based management and automation tool for Kong
MIT License
40 stars 5 forks source link

source installation on Debian #21

Open mrafieee opened 7 years ago

mrafieee commented 7 years ago

when I'm trying make file on this project it returns the error below!! on crystal version is 0.22

biplane-1.4.2# make
crystal deps install
Updating https://github.com/meskyanichi/commander.git
Updating https://github.com/MakeNowJust/crustache.git
Updating https://github.com/porras/mock.git
Using commander (0.3.3)
Using crustache (2.2.3)
Using mock (08cb37cb6c175ea098d6ed9b10add65911bac83e)
crystal spec
Error in line 1: while requiring "./spec/kong_client_spec.cr"
Syntax error in spec/kong_client_spec.cr:66: unterminated parenthesized expression
        response = build_response((api_fixture[:data] as Array)[0])
                                  ^
Makefile:22: recipe for target 'test' failed
make: *** [test] Error 1

on crystal version 0.15

biplane-1.4.2# make
crystal deps install
Updating https://github.com/meskyanichi/commander.git
Updating https://github.com/MakeNowJust/crustache.git
Updating https://github.com/porras/mock.git
Using commander (0.3.3)
Using crustache (2.2.3)
Using mock (08cb37cb6c175ea098d6ed9b10add65911bac83e)
crystal spec
/usr/bin/ld: Downloads/crystal-0.15.0-1/bin/../embedded/lib/../lib/libyaml.a(api.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Downloads/crystal-0.15.0-1/bin/../embedded/lib/../lib/libyaml.a(parser.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Downloads/crystal-0.15.0-1/bin/../embedded/lib/../lib/libyaml.a(scanner.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: Downloads/crystal-0.15.0-1/bin/../embedded/lib/../lib/libyaml.a(reader.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "Downloads/biplane-1.4.2/.crystal/crystal-run-spec.tmp" "${@}"  -rdynamic  -lz -lssl -lcrypto -lyaml Downloads/crystal-0.15.0-1/src/ext/libcrystal.a -levent -lrt -lpcre -lm -lgc -lpthread -ldl`
Makefile:22: recipe for target 'test' failed
make: *** [test] Error 1

My Distro is : Linux 4.3.0-1-amd64 #1 SMP Debian 4.3.5-1 (2016-02-06) x86_64 GNU/Linux

Do you have a source installation for Linux?

plukevdh commented 7 years ago

We were building this as part of our CI scripts but it doesn't appear any of the latest releases have picked that up.

In order to build this from source, you have to have Crystal 0.15 installed. I'm not sure this is documented anywhere outside of code. I have not had time or desire to get this up to date with latest Crystal releases.

The easiest way I know to use this without a lot of build hassle is to use our Docker distributable. This is how we use it currently internally and it allows us to be "platform agnostic". Perhaps not ideal for your solution, but it's been our main focus in terms of platform support.

mrafieee commented 7 years ago

Thanks for quick response,

we are currently using the same crystal version!!, we need to build/install this but it is returning the errors above,

we found this tool so convenient on docker but not able to build it as standalone application

plukevdh commented 7 years ago

I've updated the build to at least have a linux distro. The build was erroring during a test failure. As far as building local, I do not know the cause of the errors you are having. Those are not specific to Biplane, but appear to be build errors because of either a) your system config or b) some other Crystal-level error.

You can find latest here: https://github.com/articulate/biplane/releases/tag/1.4.3