From 3ae860f4858d520dbf4a381909e4cda1c750718d Mon Sep 17 00:00:00 2001 From: Brikou CARRE Date: Fri, 23 Mar 2012 08:53:32 +0100 Subject: [PATCH] fixed issue #486 --- src/Composer/Installer/LibraryInstaller.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 8eef0d7ed..fb03926b3 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -169,7 +169,14 @@ class LibraryInstaller implements InstallerInterface } file_put_contents($link, $this->generateWindowsProxyCode($bin, $link)); } else { - symlink($bin, $link); + try { + // under linux symlinks are not always supported for example + // when using it in smbfs mounted folder + symlink($bin, $link); + } catch (\ErrorException $e) { + file_put_contents($link, $this->generateUnixyProxyCode($bin, $link)); + } + } chmod($link, 0755); }