ラベル cygwin の投稿を表示しています。 すべての投稿を表示
ラベル cygwin の投稿を表示しています。 すべての投稿を表示

2017年1月7日土曜日

cygwinでansibleインストール時に「 /usr/include/sys/time.h:104:34: エラー: 不明な型名 'u_int' です」のエラー解決方法

cyginでansibleをインストールしたら、以下のエラーが出来ました
 /usr/include/sys/time.h:104:34: エラー: 不明な型名 'u_int' です

解決方法は、ファイル「/usr/include/sys/time.h」に「u_int」の定義を追加すること

vi /usr/include/sys/time.h


#ifndef u_int
typedef unsigned int u_int;
#endif

cygwinにsshpassを入れる手順

Step1、まずダウンロード用ディレクトリーを作成
   mkdir -p /usr/local/src

Step2、Step1で作成したディレクトリーに移動
   cd /usr/local/src

Step3、sshpassのソースファイルをダウンロードする
   wget "https://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz/download" -O sshpass.tar.gz

Step4、ダウンロードしたファイルを解凍
    tar xvfz sshpass.tar.gz

Step5、手動でコンパイルとインストールする
   cd sshpass-1.06
  
  ./configure
  make
  make install

    
Step6、バージョン確認
 sshpass -V


2017年1月6日金曜日

cygwinにのapt-cygにレポジトリーを追加する

以下のコマンドでmirror/repositoryを変更できます。

apt-cyg update -m ftp://ftp.cygwinports.org/pub/cygwinports