{"id":5114,"date":"2023-01-29T09:16:33","date_gmt":"2023-01-29T09:16:33","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=5114"},"modified":"2023-01-29T09:25:21","modified_gmt":"2023-01-29T09:25:21","slug":"install-gmp-for-php-8-1","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/install-gmp-for-php-8-1\/","title":{"rendered":"Install GMP for PHP 8.1"},"content":{"rendered":"<div class=\"default-content-clss content_5114 type_post \">\n<p class=\"wp-block-paragraph\">It has been headache for some users to install GMP extension for PHP 8+ versions. gmp module is being used by many popular packages (like <a href=\"https:\/\/github.com\/ccxt\/ccxt\">ccxt<\/a>, bignumbers or etc).<br>The easy way I find it to install, is using PHPBrew, you might look into the referred links from <a href=\"https:\/\/puvox.software\/blog\/docker-php-8-zts-apache-swoole-parallel\/\">this article<\/a> under PHPbrew paragraph, then run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php8.1-gmp\nphpbrew ext install gmp\n# some people also said, but I can't confirm: sudo apt-get install -y libgmp-dev<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and in `\/root\/.phpbrew\/php\/8.x.x\/etc\/php.ini<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">enable <code>gmp<\/code> extension (or do <code>a2enmod gmp<\/code> ) <br>and <code>systemctl restart apache2<\/code><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_5114 type_post \"><p>It has been headache for some users to install GMP extension for PHP 8+ versions. gmp module is being used by many popular packages (like ccxt, bignumbers or etc).The easy<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/install-gmp-for-php-8-1\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":5117,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/5114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=5114"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/5114\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/5117"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=5114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=5114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=5114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}