$ yum info optipng
Name : optipng
Arch : x86_64
Version : 0.6.4
Release : 1.el6
Size : 82 k
Repo : epel
Summary : PNG optimizer and converter
URL : http://optipng.sourceforge.net/
License : zlib
Description : OptiPNG is a PNG optimizer that recompresses image files to a smaller size,
: without losing any information. This program also converts external formats
: (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks
: and corrections.
ソースをダウンロード・展開。
123
$ wget "http://prdownloads.sourceforge.net/optipng/optipng-0.7.4.tar.gz?download"$ tar xzf optipng-0.7.4.tar.gz
$ cd optipng-0.7.4
[root@vagrant-blog optipng-0.7.4]# cat README.txtBuild instructions
------------------
On Unix, or under a Bourne-compatible shell, run ./configure and make:
cd optipng-0.7.4/
./configure
make
make testInstallation instructions
-------------------------
Build the program according to the instructions above.
On Unix:
- Make the "install" target:
sudo make install
- To uninstall, make the "uninstall" target:
sudo make uninstall
[root@vagrant-blog optipng-0.7.4]# ./configure --helpUsage:
./configure [options]Options:
-h, -help Show this helpInstallation directories:
-prefix=PREFIX Install architecture-independent files in PREFIX
[default: /usr/local] -exec-prefix=EPREFIX Install architecture-dependent files in EPREFIX
[default: PREFIX] -bindir=DIR Install executable in DIR [default: EPREFIX/bin] -mandir=DIR Install manual in DIR [default: PREFIX/man]Optional features:
-enable-debug Enable debug build flags and run-time checks
Optional packages:
-with-system-libpng Use the system-supplied libpng
[default: false] -with-system-zlib Use the system-supplied zlib
[default: with-system-libpng]Environment variables:
CC C compiler commandLD Linker commandCFLAGS C compiler flags (e.g. -O3) CPPFLAGS C preprocessor flags (e.g. -I DIR) LDFLAGS Linker flags (e.g. -L DIR) LIBS Additional libraries (e.g. -lfoo)
$ optipng -v
OptiPNG version 0.7.4
Copyright (C) 2001-2012 Cosmin Truta and the Contributing Authors.
This program is open-source software. See LICENSE for more details.
Portions of this software are based in part on the work of:
Jean-loup Gailly and Mark Adler (zlib) Glenn Randers-Pehrson and the PNG Development Group (libpng) Miyasaka Masaru (BMP support) David Koblas (GIF support)Using libpng version 1.4.12 and zlib version 1.2.7-optipng
$ bundle exec rake generate
## Generating Site with Jekyllidentical source/stylesheets/screen.css
---
Configuration from /app/rails_projects/blog/rasaka.github.io/_config.yml
Building site: source -> public
YAML Exception reading 2014-01-13-nfs-mount-error.markdown: invalid byte sequence in US-ASCII
/app/rails_projects/blog/rasaka.github.io/plugins/backtick_code_block.rb:13:in `gsub': invalid byte sequence in US-ASCII (ArgumentError) from /app/rails_projects/blog/rasaka.github.io/plugins/backtick_code_block.rb:13:in `render_code_block' from /app/rails_projects/blog/rasaka.github.io/plugins/octopress_filters.rb:12:in `pre_filter' from /app/rails_projects/blog/rasaka.github.io/plugins/octopress_filters.rb:28:in `pre_render' from /app/rails_projects/blog/rasaka.github.io/plugins/post_filters.rb:112:in `block in pre_render' from /app/rails_projects/blog/rasaka.github.io/plugins/post_filters.rb:111:in `each' from /app/rails_projects/blog/rasaka.github.io/plugins/post_filters.rb:111:in `pre_render' from /app/rails_projects/blog/rasaka.github.io/plugins/post_filters.rb:166:in `do_layout' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/gems/jekyll-0.12.1/lib/jekyll/post.rb:195:in `render' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/gems/jekyll-0.12.1/lib/jekyll/site.rb:200:in `block in render' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/gems/jekyll-0.12.1/lib/jekyll/site.rb:199:in `each' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/gems/jekyll-0.12.1/lib/jekyll/site.rb:199:in `render' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/gems/jekyll-0.12.1/lib/jekyll/site.rb:41:in `process' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/gems/jekyll-0.12.1/bin/jekyll:264:in `<top (required)>' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/bin/jekyll:23:in `load' from /home/vagrant/.rbenv/versions/2.1.0/gemsets/blog-octopress/bin/jekyll:23:in `<main>'
現状のロケールを確認。
12345678910
$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
[default] Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
ARPCHECK=no /sbin/ifup eth1 2> /dev/null
Stdout from the command:
Device eth1 does not seem to be present, delaying initialization.
Stderr from the command:
Mac$ vim Vagrantfile
config.vm.synced_folder "/Users/xxx/app/", "/app/", nfs: true
下記エラーが発生。
1234567
Mac$ vagrant up
[default] Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
Can't open /etc/exports
ホスト側で/etc/exportsを作成(空ファイルでよい)
1
Mac$ sudo touch /etc/exports
NFSは起動していた。
123
Mac$ sudo nfsd status
nfsd service is enabled
nfsd is running (pid 3697, 8 threads)
起動していなかった場合は以下を実行。
1
Mac$ sudo nfsd enable
別エラー発生。
12345678910111213141516
Mac$ vagrant reload
[default] Exporting NFS shared folders...
Preparing to edit /etc/exports. Administrator privileges will be required...
[default] Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o 'vers=3,udp' 192.168.33.1:'/Users/xxx/app' /app
Stdout from the command:
Stderr from the command:
mount.nfs: access denied by server while mounting 192.168.33.1:/Users/xxx/app
[default] Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o 'vers=3,udp' 192.168.33.1:'/Users/xxx/app' /app
Stdout from the command:
Stderr from the command:
mount.nfs: access denied by server while mounting 192.168.33.1:/Users/xxx/app