Search code examples
ubuntustripe-paymentscommand-line-interfaceaws-cloud9

Cannot Install Stripe CLI in Ubuntu AWS Cloud 9


I am having trouble installing the Stripe CLI in Ubuntu AWS Cloud 9. First of all, no package manager (and especially not Homebrew) works so I manually downloaded and unzipped the stripe_1.8.10_linux_x86_64.tar.gz file in ~/environment/Downloads directory. Now according to this I have to move ./stripe to the execution path.

What is the execution path and what command do I have to execute to accomplish this?

A similar question was asked a year ago but was never resolved.


Solution

  • I have to move ./stripe to the execution path.

    You don't have to move it to make it work.

    What is the execution path...

    The execution path is nothing more than a directory accessible to you without entering the full path. You may leave stripe executable in the original directory (or move it anywhere for your choice) and add its path to the $PATH environment variable.

    ...and what command do I have to execute to accomplish this?

    Run this command from where the stripe was unpacked:

    sudo mv stripe /usr/local/bin
    

    To avoid repeating unpacking and moving operations, you can simply use dpkg. Download deb package and install it:

    sudo dpkg -i stripe_1.8.10_linux_amd64.deb
    

    This is the basis for solving your troubles inside Ubuntu. But unlike last year's question, you have a new specificity - AWS Cloud9.

    I have doubts about this claim:

    First of all, no package manager

    AWS Cloud9 is an IDE and of course the system package manager is not part of it. But AWS Cloud9 seats ontop Amazon EC2 instance and "comes with a terminal that includes sudo privileges to the managed Amazon EC2 instance". Based on the title of your question, you are using Ubuntu. Ubuntu has dpkg. Hence, you have package manager. Correct me if i'm wrong.