{"action":"created","issue":{"url":"https://api.github.com/repos/jcupitt/libvips/issues/965","repository_url":"https://api.github.com/repos/jcupitt/libvips","labels_url":"https://api.github.com/repos/jcupitt/libvips/issues/965/labels{/name}","comments_url":"https://api.github.com/repos/jcupitt/libvips/issues/965/comments","events_url":"https://api.github.com/repos/jcupitt/libvips/issues/965/events","html_url":"https://github.com/jcupitt/libvips/issues/965","id":321049891,"number":965,"title":"Undefined function vips_cache_set_max()","user":{"login":"msheep","id":3865432,"avatar_url":"https://avatars1.githubusercontent.com/u/3865432?v=4","gravatar_id":"","url":"https://api.github.com/users/msheep","html_url":"https://github.com/msheep","followers_url":"https://api.github.com/users/msheep/followers","following_url":"https://api.github.com/users/msheep/following{/other_user}","gists_url":"https://api.github.com/users/msheep/gists{/gist_id}","starred_url":"https://api.github.com/users/msheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msheep/subscriptions","organizations_url":"https://api.github.com/users/msheep/orgs","repos_url":"https://api.github.com/users/msheep/repos","events_url":"https://api.github.com/users/msheep/events{/privacy}","received_events_url":"https://api.github.com/users/msheep/received_events","type":"User","site_admin":false},"labels":[{"id":15569166,"url":"https://api.github.com/repos/jcupitt/libvips/labels/question","name":"question","color":"02e10c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-08T05:46:01Z","updated_at":"2018-05-08T14:34:13Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n\r\nAfter I installed libvips, I had the following error:\r\nFastCGI sent in stderr: \"PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function Jcupitt\\Vips\\vips_cache_set_max() in /var/www/imagesweserv/vendor/jcupitt/vips/src/Config.php:99\r\n\r\nI had added vips.so in the mods-available folder under php 7.1. And the version of vips is vips-8.6.3. BTW, I followed the script of jcupitt/docker-builds and they are really helpful. But I got this error after I installed. I noticed that the function vips_cache_set_max() is from php-vips-ext, should I install php-vips-ext manually? \r\n\r\nI am really struggled, please help me~~~\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jcupitt/libvips/issues/comments/387423605","html_url":"https://github.com/jcupitt/libvips/issues/965#issuecomment-387423605","issue_url":"https://api.github.com/repos/jcupitt/libvips/issues/965","id":387423605,"user":{"login":"msheep","id":3865432,"avatar_url":"https://avatars1.githubusercontent.com/u/3865432?v=4","gravatar_id":"","url":"https://api.github.com/users/msheep","html_url":"https://github.com/msheep","followers_url":"https://api.github.com/users/msheep/followers","following_url":"https://api.github.com/users/msheep/following{/other_user}","gists_url":"https://api.github.com/users/msheep/gists{/gist_id}","starred_url":"https://api.github.com/users/msheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msheep/subscriptions","organizations_url":"https://api.github.com/users/msheep/orgs","repos_url":"https://api.github.com/users/msheep/repos","events_url":"https://api.github.com/users/msheep/events{/privacy}","received_events_url":"https://api.github.com/users/msheep/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T14:34:13Z","updated_at":"2018-05-08T14:34:13Z","author_association":"NONE","body":"Yes, I followed this. The following is my ansible script:\r\n```\r\n\r\n- name: Check vips\r\n  command: vips -v\r\n  register: vips_check\r\n  changed_when: false\r\n  ignore_errors: true\r\n\r\n- name: Install libvips dependencies\r\n  become: true\r\n  apt:\r\n    pkg: \"{{ item }}\"\r\n    state: present\r\n    update_cache: yes\r\n  with_items:\r\n    - build-essential\r\n    - pkg-config\r\n    - libvips-dev\r\n    - libexpat1-dev\r\n    - libglib2.0-dev\r\n    - libexpat-dev\r\n    - librsvg2-dev\r\n    - libpng-dev\r\n    - libgif-dev\r\n    - libjpeg-turbo8-dev\r\n    - libexif-dev\r\n    - libxml2-dev\r\n    - libfftw3-dev\r\n    - liblcms2-dev\r\n    - libmagickwand-dev\r\n    - libopenexr-dev\r\n    - liborc-dev\r\n    - libgsf-1-dev\r\n    - libtiff5-dev\r\n    - liborc-0.4-dev\r\n#  when:\r\n#    - vips_check is failed\r\n\r\n- name: Install libpoppler dependencies\r\n  become: true\r\n  apt:\r\n    pkg: \"{{ item }}\"\r\n    state: present\r\n    update_cache: yes\r\n  with_items:\r\n    - g++\r\n    - autoconf\r\n    - libfontconfig1-dev\r\n    - libopenjpeg-dev\r\n    - gnome-common\r\n    - gtk-doc-tools\r\n    - libyelp-dev\r\n    - yelp-tools\r\n    - gobject-introspection\r\n    - libsecret-1-dev\r\n    - libnautilus-extension-dev\r\n\r\n- name: Download libpoppler data\r\n  become: true\r\n  unarchive:\r\n    src: https://poppler.freedesktop.org/poppler-data-0.4.7.tar.gz\r\n    dest: /tmp\r\n    remote_src: yes\r\n\r\n- name: Install libpoppler data\r\n  become: true\r\n  shell: cd /tmp/poppler-data-0.4.7 && make install\r\n\r\n- name: Download libpoppler\r\n  become: true\r\n  unarchive:\r\n    src: https://poppler.freedesktop.org/poppler-0.48.0.tar.xz\r\n    dest: /tmp\r\n    remote_src: yes\r\n\r\n- name: Install libpoppler\r\n  become: true\r\n  shell: cd /tmp/poppler-0.48.0 && ./configure && make && sudo make install\r\n\r\n- name: Download libvips\r\n  become: true\r\n  unarchive:\r\n    src: https://github.com/jcupitt/libvips/releases/download/v8.6.3/vips-8.6.3.tar.gz\r\n    dest: /tmp\r\n    remote_src: yes\r\n\r\n- name: Install libvips\r\n  become: true\r\n  shell: cd /tmp/vips-8.6.3 && ./configure && make && make install && ldconfig\r\n\r\n- name: Install vips\r\n  become: true\r\n  shell: pecl install vips\r\n  register: pecl_result\r\n  changed_when: \"pecl_result.rc == 0\"\r\n  failed_when: \"not (('already installed' in pecl_result.stdout) or ('install ok:' in pecl_result.stdout))\"\r\n\r\n- name: Add vips extension\r\n  become: true\r\n  blockinfile:\r\n    path: /etc/php/7.1/mods-available/vips.ini\r\n    block: extension=vips.so\r\n    create: yes\r\n\r\n- name: Symlink vips extension\r\n  become: true\r\n  file:\r\n    src: /etc/php/7.1/mods-available/vips.ini\r\n    dest: /etc/php/7.1/cli/conf.d/20-vips.ini\r\n    state: link\r\n``` "}}
{"actor":{"display_login":"msheep"}}