# SLES 12 - Drush & composer

**URL:** <https://forums.suse.com/t/sles-12-drush-composer/27304>\
**Category:** SLES Configure-Administer\
**Created:** [August 4, 2015, 9:54pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304 "2015-08-04T21:54:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cisaksen](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cisaksen](https://forums.suse.com/u/cisaksen)\
**Post date:** [August 4, 2015, 9:54pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/1 "2015-08-04T21:54:01Z")

</div>

I’m trying to install drush 7.x onto sles 12 and having a time of it.

Using the drush instructions I need to install composer first: curl -sS [https://getcomposer.org/installer](https://getcomposer.org/installer) | php

This throws a error: The phar extension is missing - now I’m using the php (5.5.14.x) that came with sles 12 and according to [PHP.net](http://PHP.net) phar is included in php 5.3 and above. php.ini has a [phar] section with only 3 options. No of which seem to restrict it from being seen.

As I’m also using fpm the php.ini is in /etc/php/fpm and I tried the above command with the -c /etc/php/fpm/php.ini with the same results.

Any ideas ?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 4, 2015, 10:21pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/2 "2015-08-04T22:21:27Z")

</div>

Hi  
Looking at the OBS version spec file here;  
[https://build.opensuse.org/package/view\_file/server:php:applications/drush/drush.spec?expand=1](https://build.opensuse.org/package/view_file/server:php:applications/drush/drush.spec?expand=1)

Looks like it’s just a few files, softlinks and bash completion…

Why not ping the maintainer (see the changes file) and ask them to update?  
[https://build.opensuse.org/package/show?project=server%3Aphp%3Aapplications&package=drush](https://build.opensuse.org/package/show?project=server%3Aphp%3Aapplications&package=drush)

---

<div class="post-metadata">

**Author:** ![cisaksen](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cisaksen](https://forums.suse.com/u/cisaksen)\
**Post date:** [August 4, 2015, 10:23pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/3 "2015-08-04T22:23:04Z")

</div>

Do you know if php was compiled/packaged with phar support in sles 12 ?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 4, 2015, 11:04pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/4 "2015-08-04T23:04:52Z")

</div>

Hi  
Looking at the spec file on OBS for php5 it does appear to be enabled, however there is a separate package php5-phar which doesn’t appear to be included in the web hosting extension. Let me check with my SUSE contacts, but may need you to raise an SR, is that possible for you to do if needed?

---

<div class="post-metadata">

**Author:** ![cisaksen](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cisaksen](https://forums.suse.com/u/cisaksen)\
**Post date:** [August 5, 2015, 6:36pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/5 "2015-08-05T18:36:56Z")

</div>

I tried [http://software.opensuse.org/download.html?project=server:php:applications&package=drush](http://software.opensuse.org/download.html?project=server:php:applications&package=drush)

Unfortunately the yum file has repos that don’t exist and the package fails checksums. So this was a no go.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 5, 2015, 6:44pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/6 "2015-08-05T18:44:41Z")

</div>

[QUOTE=cisaksen;29033]I tried [http://software.opensuse.org/download.html?project=server:php:applications&package=drush](http://software.opensuse.org/download.html?project=server:php:applications&package=drush)

Unfortunately the yum file has repos that don’t exist and the package fails checksums. So this was a no go.[/QUOTE]  
Hi  
You mean ymp file?

You can manually add the repo and do a refresh;

```auto
zypper ar -f http://download.opensuse.org/repositories/server:/php:/applications/SLE_12/ "server:php-SLE12"
zypper ref
zypper in drush
```

Still waiting to hear back on the missing phar package.

---

<div class="post-metadata">

**Author:** ![cisaksen](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cisaksen](https://forums.suse.com/u/cisaksen)\
**Post date:** [August 5, 2015, 6:57pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/7 "2015-08-05T18:57:46Z")

</div>

Yes I can add the repo manually but I still get the check sum error - basically saying that the package isn’t valid.

I was able to install drush 6.2 using pear

pear channel-discover [pear.drush.org](http://pear.drush.org)  
pear install drush/drush

But I was hoping to install 7.x

---

<div class="post-metadata">

**Author:** ![cisaksen](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cisaksen](https://forums.suse.com/u/cisaksen)\
**Post date:** [August 5, 2015, 10:41pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/8 "2015-08-05T22:41:10Z")

</div>

Found the problem with my invalid signature, I was trying to use suse mgr 2.1 with a custom repo - something is wrong with it . If I added the repo directly on the server it worked fine, though it still drush 6.6

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 5, 2015, 11:37pm UTC](https://forums.suse.com/t/sles-12-drush-composer/27304/9 "2015-08-05T23:37:13Z")

</div>

> [@](#):
>
> On Wed 05 Aug 2015 07:44:02 PM CDT, cisaksen wrote:
> 
> Found the problem with my invalid signature, I was trying to use suse  
> mgr 2.1 with a custom repo - something is wrong with it . If I added  
> the repo directly on the server it worked fine, though it still drush  
> 6.6

Hi  
Adding the key from the repo should help…

Yes, in my earlier link, ping the maintainer to update?

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel  
3.12.44-52.10-default If you find this post helpful and are logged into  
the web interface, please show your appreciation and click on the star  
below… Thanks!
