LoginSignup
5
4

More than 5 years have passed since last update.

heroku-cliをFreeBSDで使うには

Posted at

heroku-cliをFreeBSDで使うには

最新のherokuコマンドはgoとnodeで書かれています。goはFreeBSDのネイティブバイナリが用意されている感じなのですが、nodeは用意されておらず、以下のような面倒くさいメッセージが表示されます。

% heroku
Setting up node-v4.2.1... ▸    node does not offer a prebuilt binary for your OS.
 ▸    You'll need to compile the tarball from nodejs.org and place it in ~/.heroku/node-v4.2.1

せっかくFreeBSDにはpkgがあるのに面倒ですね。ですので、pkgでインストールしたバイナリを見るようにしましょう。

% sudo pkg install node npm
...
% mkdir ~/.heroku/node-v4.2.1
% cd ~/.heroku/node-v4.2.1
% ln -s /usr/local/bin
% ln -s /usr/local/lib

これでheroku-cliを騙すことが出来、無事herokuコマンドを再び使えるようになります。

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4