J'ai Piège 6.2.0.0 installé (via PEAR) sur une synologie NAS (busybox). Lorsque vous essayez d'utiliser Drush DL, il échoue à l'étape où le fichier téléchargé doit être non endrémé (voir Boîte de code ci-dessous pour les messages - rougebug). Je l'ai fait fonctionner de manière transitoire en avril 2013, mais avez-vous modifié mon système et n'avez pas été en mesure de ré-produire ma configuration de travail.
J'ai essayé toutes les versions de drush stables précédentes à 5,4.0, avec le même problème. Si je répète manuellement les marches de la CLI, tout fonctionne bien, alors je soupçonne que c'est quelque chose à voir avec la version incompatibilité avec la commande tar drush appelle, mais n'a pas pu trouver un moyen de faire fonctionner.
drush dl views_raw_sql --debug
BusyBox v1.16.1 (2013-11-06 05:34:06 CST) multi-call binary.
Usage: dirname FILENAME
Strip non-directory suffix from FILENAME
Bootstrap to phase 0. [0.01 sec, 2.37 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.02 sec, 2.49 MB] [bootstrap]
Cache HIT cid: 6.2.0-commandfiles-0-13d519746b450041a028af739ac40466 [0.03 sec, 2.5 MB] [debug]
Bootstrap to phase 0. [0.3 sec, 5.76 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.49 sec, 5.76 MB] [bootstrap]
Initialized Drupal 7.24 root directory at /web/rooms [0.53 sec, 6.69 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.53 sec, 6.7 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.54 sec, 6.7 MB] [notice]
Cache HIT cid: 6.2.0-install_profile-66ecfeb9791a023150773849f1550c5d [0.54 sec, 6.7 MB] [debug]
Cache HIT cid: 6.2.0-commandfiles-2-699657487b88e8b0c2ede2984aa12913 [0.54 sec, 6.7 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.55 sec, 6.7 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.56 sec, 6.71 MB] [bootstrap]
Successfully connected to the Drupal database. [0.56 sec, 6.71 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.58 sec, 7.16 MB] [bootstrap]
Cache HIT cid: 6.2.0-install_profile-66ecfeb9791a023150773849f1550c5d [1.21 sec, 23.47 MB] [debug]
Cache HIT cid: 6.2.0-commandfiles-5-bbe78d7a9b386ee3452d706cd9cfae92 [1.22 sec, 23.48 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [1.23 sec, 23.79 MB] [bootstrap]
Successfully logged into Drupal as Anonymous (uid=0) [1.25 sec, 23.96 MB] [bootstrap]
Found command: pm-download (commandfile=pm) [1.25 sec, 23.96 MB] [bootstrap]
Loading version_control engine. [1.76 sec, 24.14 MB] [notice]
Loading package_handler engine. [1.77 sec, 24.15 MB] [notice]
Executing: wget --version
Loading release_info engine. [1.79 sec, 24.18 MB] [notice]
Including /usr/syno/php/share/pear/drush/commands/pm/download.pm.inc [1.81 sec, 24.28 MB] [bootstrap]
Calling hook drush_pm_download_validate [1.81 sec, 24.36 MB] [debug]
Returned from hook drush_pm_download_validate [1.81 sec, 24.36 MB] [debug]
Calling hook drush_pm_download [1.81 sec, 24.37 MB] [debug]
Downloading release history from http://updates.drupal.org/release-history/views_raw_sql/7.x [1.82 sec, 24.37 MB] [notice]
Executing: wget --version
GNU Wget 1.10.1
Copyright (C) 2005 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Originally written by Hrvoje Niksic <[email protected]>.
Executing: wget -q --timeout=30 -O /tmp/download_file6l316N http://updates.drupal.org/release-history/views_raw_sql/7.x
Calling drush_delete_dir(/tmp/views_raw_sql7H5oRi, 1) [2.48 sec, 24.37 MB] [debug]
Calling is_readable(/tmp/download_file6l316N) [2.49 sec, 24.37 MB] [debug]
Calling is_writable(/tmp) [2.49 sec, 24.37 MB] [debug]
Calling rename(/tmp/download_file6l316N, /tmp/views_raw_sql7H5oRi) [2.49 sec, 24.37 MB] [debug]
Downloading project views_raw_sql to /tmp/drush_tmp_1386803829_52a8f27534ca9 ... [2.49 sec, 24.38 MB] [notice]
Executing: wget -q --timeout=30 -O /tmp/download_filebSRmyk http://ftp.drupal.org/files/projects/views_raw_sql-7.x-1.0-rc1.tar.gz
Calling is_readable(/tmp/download_filebSRmyk) [3.02 sec, 24.38 MB] [debug]
Calling is_writable(/tmp/drush_tmp_1386803829_52a8f27534ca9) [3.02 sec, 24.38 MB] [debug]
Calling rename(/tmp/download_filebSRmyk, /tmp/drush_tmp_1386803829_52a8f27534ca9/views_raw_sql-7.x-1.0-rc1.tar.gz) [3.02 sec, 24.38 MB] [debug]
Downloading views_raw_sql-7.x-1.0-rc1.tar.gz was successful. [3.02 sec, 24.38 MB] [notice]
Calling md5_file(/tmp/drush_tmp_1386803829_52a8f27534ca9/views_raw_sql-7.x-1.0-rc1.tar.gz) [3.02 sec, 24.38 MB] [debug]
Md5 checksum of views_raw_sql-7.x-1.0-rc1.tar.gz verified. [3.02 sec, 24.38 MB] [notice]
Mime type for /tmp/drush_tmp_1386803829_52a8f27534ca9/views_raw_sql-7.x-1.0-rc1.tar.gz is application/x-gzip [3.03 sec, 24.38 MB] [notice]
Calling chdir(/tmp/drush_tmp_1386803829_52a8f27534ca9) [3.03 sec, 24.38 MB] [debug]
Executing: tar -C /tmp/drush_tmp_1386803829_52a8f27534ca9 -xzf views_raw_sql-7.x-1.0-rc1.tar.gz
/usr/local/php/bin/tar: 2>&1: Not found in archive
/usr/local/php/bin/tar: Exiting with failure status due to previous errors
Calling chdir(/volume1/web/rooms) [3.04 sec, 24.39 MB] [debug]
Unable to untar /tmp/drush_tmp_1386803829_52a8f27534ca9/views_raw_sql-7.x-1.0-rc1.tar.gz. [3.04 sec, 24.39 MB] [error]
Using destination directory sites/all/modules [3.04 sec, 24.39 MB] [notice]
Verifying signature for svn version control engine. [3.04 sec, 24.39 MB] [debug]
Executing: svn info sites/all/modules
sh: /usr/local/php/bin/svn: not found
Verifying signature for bzr version control engine. [3.05 sec, 24.4 MB] [debug]
Executing: bzr root sites/all/modules
sh: /usr/local/php/bin/bzr: not found
Calling _drush_recursive_copy(/tmp/drush_tmp_1386803829_52a8f27534ca9/views_raw_sql, sites/all/modules/views_raw_sql) [3.06 sec, 24.39 MB] [debug]
copy(/tmp/drush_tmp_1386803829_52a8f27534ca9/views_raw_sql): failed to open stream: No such file or directory filesystem.inc:257 [3.06 sec, 24.39 MB] [warning]
Project views_raw_sql (7.x-1.0-rc1) could not be downloaded to sites/all/modules/views_raw_sql. [3.06 sec, 24.39 MB] [error]
Returned from hook drush_pm_download [3.06 sec, 24.39 MB] [debug]
Command dispatch complete [3.06 sec, 24.37 MB] [notice]
Timer Cum (sec) Count Avg (msec)
page 2.514 1 2514.15
Peak memory usage was 25.5 MB [3.07 sec, 24.37 MB] [memory]
Comme il n'y a pas de solution acceptée et j'avais passé des heures à le comprendre. D'abord, j'ai dirigé la commande Drush avec l'option de débogage pour voir quel est le problème.
drush dl entity --debug
Je savais que Krush ne pouvait pas endommager et il avait besoin de fichier bsdtar.exe sous Windows. J'ai téléchargé bsdtar.exe à partir de google code bsdtar.exe à partir de Google Code Je l'ai téléchargé et définissez le chemin d'accès, voir l'image . J'ai essayé la commande Drush à nouveau et cela a fonctionné.
On dirait que, pour une raison quelconque, votre drush cherche le tar binaire dans
/usr/local/php/bin/tar
ça devrait être quelque chose comme:
/bin/tar
Peut-être que vous avez fait quelque chose de funky avec votre configuration de chemin variable d'environnement. Tu peux echo $PATH
tester.
Si vous ne pouvez pas comprendre pourquoi la voie de la goudron est fausse, une solution de contournement serait de symboliser/USR/local/php/bac/goudron à/bac (en supposant que ce dernier est présent)
Pour localiser le goudron, tapez
whereis tar
Ensuite, vous pouvez créer un symbole symbolique de celui-ci tente d'utiliser au binaire réel
par exemple:
Sudo mkdir -p /usr/local/php/bin
Sudo ln -s /bin/tar /usr/local/php/bin/tar