LoginSignup
0
0

More than 5 years have passed since last update.

adlint導入 macintosh &名古屋のIoTは名古屋のOSで

Last updated at Posted at 2018-07-19

AdLint 3.2.14 利用者ガイド
http://adlint.sourceforge.net/pmwiki/upload.d/Main/users_guide_ja.html

にMacintoshのことが書かれていない。
Linuxの例を実行。


$ gem install adlint
Fetching: adlint-3.2.14.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
OgawaKiyoshi-no-MacBook-Pro:source ogawakiyoshi$ sudo gem install adlint
Password:
Fetching: adlint-3.2.14.gem (100%)
-------------------------------------------------------------------------------
     ___    ____  __    ___   _________
    /   |  / _  |/ /   / / | / /__  __/            Source Code Static Analyzer
   / /| | / / / / /   / /  |/ /  / /                    AdLint - Advanced Lint
  / __  |/ /_/ / /___/ / /|  /  / /
 /_/  |_|_____/_____/_/_/ |_/  /_/    Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.

                         Thanks for installing AdLint!
     Please visit our project homepage at <http://adlint.sourceforge.net/>.

-------------------------------------------------------------------------------
Successfully installed adlint-3.2.14
Parsing documentation for adlint-3.2.14
Installing ri documentation for adlint-3.2.14
Done installing documentation for adlint after 17 seconds
1 gem installed

GNU makeがない場合の実行。

$ adlint -v -t adlint_traits.yml -l adlint_files.txt
/Library/Ruby/Gems/2.3.0/gems/adlint-3.2.14/bin/adlint:111:in `readlines': No such file or directory @ rb_sysopen - adlint_files.txt (Errno::ENOENT)
    from /Library/Ruby/Gems/2.3.0/gems/adlint-3.2.14/bin/adlint:111:in `<top (required)>'
    from /usr/local/bin/adlint:22:in `load'
    from /usr/local/bin/adlint:22:in `<main>'

先にadlintizeを実行しないといけなかった。

$ adlintize
$ make verbose-all
adlint -t adlint_traits.yml -o . -p 1 -v ./func.c
                   ./func.c [cpp] |====                        | 0.013s!
An error was occurred while processing `./func.c'.
See `func.c.msg.csv' and `func.c.log' for more details.
  0.500s user, 0.040s system, 00:00:00.54 total
make: *** [adlint_verbose-all] Error 4
0
0
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
0
0