Compile Source Code


(Mojtaba Motamed) #1

Is there any way to compile source code of kibana( from github)


(Tim Roes) #2

It is - I mean obvious, since we need to build Kibana somehow :smiley: - please have a look at the Contribution guide for information how to setup your build environment, to build Kibana from source.

Cheers,
Tim


(Mojtaba Motamed) #3

sorry, is it any way to for example change theme or change the label of left menu?


(Tim Roes) #4

We don't have any tutorials on how to achieve that. Basically you will need to figure out the correct files and update them to your need. For example the side navigation is within the global_nav directive.


(Mojtaba Motamed) #5

i read the contribution and confused :frowning:
have any article to show easy how we can compile source code of kibana??


(Tim Roes) #6

Hi,

I am sorry, but that's the most easiest introduction we have right now how to build Kibana.

It should also contain all the different ways, for what scenarios you want to build (OS packages, dev mode, etc.) Is there any specific build variant that you are missing in the documentation?

In the easiest way to build it from source code, you just need to download the repository, download yarn (yarn 1.7.0 currently have an issue why you need to use an earlier) version, and run yarn kbn bootstrap and yarn build in the repository. Is anything specific not working for you?

Cheers,
Tim


(Mojtaba Motamed) #7

thansk.so i should download code with git,then download yarn and run this instrument,is it ok?


(Mojtaba Motamed) #8

Can i use build version?
i run kibana with elasticSearch but can not use source
help me :frowning:


(Mojtaba Motamed) #9

i run yarn kbn bootstrap
all package is intall but have this error


(Tim Roes) #10

The issue you are hitting is because you are using yarn 1.7.0, which unfortunately has an issue and cannot be used to compile it until it has been fixed. So please downgrade your yarn version to a version before 1.7.0, that way you should be able to run that.


(Mojtaba Motamed) #11

i downgrade and install 1.6 yarn version but has this error


i use windows10


(Tim Roes) #12

That seems to be an issue for windows for that specific package currently. I am not aware of any workaround for that, but contacted the package creator and hope that they can fix that soon and we can pull in a fixed version.


(Ryan O'Connor) #13

That looks like a file encoding error. Are you sure it's just for that one package?


(Tim Roes) #14

I think it is because the post install script (JS file) of that package was beginning with a shebang (#! /usr/bin/env node), while being executed as node scripts/postinstall.js. It seems not to fail as gracefully on Windows, than on other platforms. Though of course could still be an encoding issue with that file.


(Mojtaba Motamed) #15

i change from windows to mac. in mac i can not install yarn.
i think i should change my os to mac or Linux to can compile Source of kibana
can you help me how i can compile source code of kibana in mac os?
Thanks alot


(Tim Roes) #16

There is no difference in compiling your sources in Mac, than on any other OS.

But also on OS X, please make sure, not to use yarn 1.7.0, which is currently broken, but instead use e.g. 1.6.0 (https://github.com/yarnpkg/yarn/releases/tag/v1.6.0).

Cheers,
Tim


(Mojtaba Motamed) #17

thanks for your answre
i can not find install of yarn 1.6 dmg file for install on mac


(Tim Roes) #18

I think the original yarn issue offers some help on how to install a fixed version on OS X:


(Mojtaba Motamed) #19

i install yarn kbn bootstrap. what is next step to use compile source code ?


(system) #20

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.