{"id":88,"date":"2018-04-02T11:55:54","date_gmt":"2018-04-02T02:55:54","guid":{"rendered":"http:\/\/rugoh.co.jp\/blog\/?p=88"},"modified":"2018-04-08T19:00:29","modified_gmt":"2018-04-08T10:00:29","slug":"fuelphp_less","status":"publish","type":"post","link":"https:\/\/rugoh.co.jp\/blog\/2018\/04\/02\/fuelphp_less\/","title":{"rendered":"CentOS7\u3067FuelPHP\u3067less\u3092\u4f7f\u3046"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/appstars.jp\/archive\/87\" target=\"_blank\" rel=\"noopener\"> FuelPHP\u3067LESS\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/a><br \/>\n\u3092\u53c2\u8003\u306bFuelPHP\u3067less\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u4e00\u901a\u308a\u306e\u8a2d\u5b9a\u3092\u7d42\u3048\u305f\u3068\u3053\u308d\u3067<\/p>\n<p>\u30a8\u30e9\u30fc\u304c\u306f\u767a\u751f<\/p>\n<p><strong>\/lib\/ld-linux.so.2: bad ELF interpreter: No such file or directory<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre># yum install ld-linux.so.2<\/pre>\n<p>\u3055\u3089\u306b\u30a8\u30e9\u30fc<\/p>\n<p><strong>node: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory<\/strong><\/p>\n<p>\u3088\u304f\u308f\u304b\u306a\u3093\u306a\u3044\u304c\u3001libstdc++.so.6\u3068\u3044\u3046\u306e\u304c\u958b\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067<br \/>\n\u3053\u308c\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u306e\u3067\u3059\u304c<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u304c\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001<strong>whatprovides<\/strong>\u3092\u4f7f\u3044\u307e\u3059<\/p>\n<pre># yum whatprovides libstdc++.so.6<\/pre>\n<pre>\r\nLoaded plugins: fastestmirror, langpacks\r\nLoading mirror speeds from cached hostfile\r\n * base: ftp.iij.ad.jp\r\n * extras: centosv4.centos.org\r\n * updates: centosv4.centos.org\r\nlibstdc++-4.8.5-16.el7.i686 : GNU Standard C++ Library\r\nRepo        : base\r\nMatched from:\r\nProvides    : libstdc++.so.6\r\n\r\n\r\n\r\nlibstdc++-4.8.5-16.el7_4.1.i686 : GNU Standard C++ Library\r\nRepo        : updates\r\nMatched from:\r\nProvides    : libstdc++.so.6\r\n\r\n\r\n\r\nlibstdc++-4.8.5-16.el7_4.2.i686 : GNU Standard C++ Library\r\nRepo        : updates\r\nMatched from:\r\nProvides    : libstdc++.so.6\r\n<\/pre>\n<p>\u79c1\u306e\u74b0\u5883\u3067\u306f\u3001\u6700\u5f8c\u306e<br \/>\n<strong>libstdc++-4.8.5-16.el7_4.2.i686<\/strong><br \/>\n\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3002<\/p>\n<pre># yum install libstdc++-4.8.5-16.el7.i686<\/pre>\n<p>\u3053\u3053\u3067\u7121\u4e8bless\u304cccss\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306b\u306f\u3001View\u3067<\/p>\n<pre>echo Asset::less('test.less');<\/pre>\n<p>\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3093\u3067\u3059\u304c\u3001<br \/>\nView\u306fSmarty\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001<br \/>\nView\u30d5\u30a1\u30a4\u30eb\u306b\u76f4\u63a5\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u306a\u3044\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001Controller\u3067less\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e\u30bf\u30b0\u3092<br \/>\nView\u306b\u5909\u6570\u3068\u3057\u3066\u6e21\u3057\u3001\u305d\u3044\u3064\u3092\u8868\u793a\u3059\u308b<\/p>\n<p>Controller\u5074<\/p>\n<pre>\r\n$view = \\View_Smarty::forge('index');\r\n$view->set_safe('css', Asset::less('test.less'));\r\n<\/pre>\n<p>index.tpl\u5074<\/p>\n<pre>\r\n{$css}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; FuelPHP\u3067LESS\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b \u3092\u53c2\u8003\u306bFuelPHP\u3067less\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3002 \u4e00\u901a\u308a\u306e\u8a2d\u5b9a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":95,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts\/88"}],"collection":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":6,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts\/88\/revisions\/103"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/media\/95"}],"wp:attachment":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}