Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I install it without root? #273

Closed
chrisbra opened this issue Feb 17, 2015 · 6 comments
Closed

How do I install it without root? #273

chrisbra opened this issue Feb 17, 2015 · 6 comments

Comments

@chrisbra
Copy link

As per the title. I started with the installation instructions:

0 3483 chrisbra@debian ~/code/git/travis.rb (git)-[master]- % gem install travis -v 1.7.5 --no-rdoc --no-ri
Fetching: multipart-post-2.0.0.gem (100%)
ERROR:  While executing gem ... (Errno::EACCES)
Permission denied @ dir_s_mkdir - /var/lib/gems

I do not want to install it systemwide, so how can I tell it to install below $HOME?

@rkh
Copy link
Contributor

rkh commented Feb 19, 2015

You should add a writable path to the $GEM_PATH variable and set $GEM_HOME
to that value. Note that you will also make sure it's bin directory is on
the $PATH.

We are planning to ship a CLI version by other means than rubygems, to
(amongst other things) make it easier for non-ruby developers to get it
running.

On Tue, Feb 17, 2015 at 9:49 PM, chrisbra [email protected] wrote:

As per the title. I started with the installation instructions:

0 3483 chrisbra@debian ~/code/git/travis.rb (git)-[master]- % gem install travis -v 1.7.5 --no-rdoc --no-ri
Fetching: multipart-post-2.0.0.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ dir_s_mkdir - /var/lib/gems

I do not want to install it systemwide, so how can I tell it to install
below $HOME?


Reply to this email directly or view it on GitHub
#273.

@chrisbra
Copy link
Author

Am 2015-02-19 10:09, schrieb Konstantin Haase:

You should add a writable path to the $GEM_PATH variable and set
$GEM_HOME
to that value. Note that you will also make sure it's bin directory
is on
the $PATH.

We are planning to ship a CLI version by other means than rubygems,
to
(amongst other things) make it easier for non-ruby developers to get
it
running.

You are right, I am not a ruby developer. So please document that on
the frontpage (where I copied the install instructions for ubuntu).

BTW: I only need that to invalidate the cache, but I would rather have
a button on the webpage to discard the old cache...

Thanks,

Christian

@muhuk
Copy link

muhuk commented Oct 22, 2015

Please make the client something non-rubyists can also use!

    $ GEM_HOME=/home/muhuk/.gem GEM_PATH=/home/muhuk/.gem gem install travis


    Fetching: multipart-post-2.0.0.gem (100%)
    Successfully installed multipart-post-2.0.0
    Fetching: faraday-0.9.2.gem (100%)
    Successfully installed faraday-0.9.2
    Fetching: faraday_middleware-0.10.0.gem (100%)
    Successfully installed faraday_middleware-0.10.0
    Fetching: highline-1.7.8.gem (100%)
    Successfully installed highline-1.7.8
    Fetching: backports-3.6.6.gem (100%)
    Successfully installed backports-3.6.6
    Fetching: net-http-pipeline-1.0.1.gem (100%)
    Successfully installed net-http-pipeline-1.0.1
    Fetching: net-http-persistent-2.9.4.gem (100%)
    Successfully installed net-http-persistent-2.9.4
    Fetching: addressable-2.3.8.gem (100%)
    Successfully installed addressable-2.3.8
    Fetching: multi_json-1.11.2.gem (100%)
    Successfully installed multi_json-1.11.2
    Fetching: gh-0.14.0.gem (100%)
    Successfully installed gh-0.14.0
    Fetching: launchy-2.4.3.gem (100%)
    Successfully installed launchy-2.4.3
    Fetching: coderay-1.1.0.gem (100%)
    Successfully installed coderay-1.1.0
    Fetching: slop-3.6.0.gem (100%)
    Successfully installed slop-3.6.0
    Fetching: method_source-0.8.2.gem (100%)
    Successfully installed method_source-0.8.2
    Fetching: pry-0.10.0.rc1.gem (100%)
    Successfully installed pry-0.10.0.rc1
    Fetching: ffi-1.9.10.gem (100%)
    Building native extensions.  This could take a while...
    ERROR:  Error installing travis:
            ERROR: Failed to build gem native extension.

        /usr/bin/ruby2.1 extconf.rb
    mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

    extconf failed, exit code 1

@eriktim
Copy link

eriktim commented Feb 6, 2016

@muhuk - I think you need to run apt-get install ruby-dev as root first.

@muhuk
Copy link

muhuk commented Feb 24, 2016

@GingerIK sorry for the delayed response.

I can confirm I have ruby-dev. (Probably I have it installed before trying to install the client.)

I was trying to get a token. Solved the issue some other way (travis is still not installed on my machine), but I can't remember how. I think I have used the token in my account page.

Thanks for the info though. It is very well documented too.

@BanzaiMan
Copy link
Contributor

Closing in favor of #758. It no longer depends on native extensions, so the installation should be easier. If the issue persists, feel free to open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants