Probleme d'install paperclip

Bonsoir tout le monde :slight_smile:

Je débute sur rails et je tombe sur un petit problème sur
l’installation de paperclip en plugin

Que je fasse :

script/plugin install git://github.com/thoughtbot/paperclip.git
./script/plugin install git://github.com/thoughtbot/paperclip.git
sudo script/plugin install git://github.com/thoughtbot/paperclip.git

a chaque fois il passe à la ligne et il installe rien du tout.

kimkof@macbook-de-kimkof ~/Sites/testi $ gem -v
1.3.1
kimkof@macbook-de-kimkof ~/Sites/testi $ rails -v
Rails 2.2.2
kimkof@macbook-de-kimkof ~/Sites/testi $ ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]

Je pige pas :-s

Merci d’avance :slight_smile:

Cordialement,
Beugin Thomas

2008/12/30 Thomas :

Je débute sur rails et je tombe sur un petit problème sur
l’installation de paperclip en plugin

Que je fasse :

script/plugin install git://github.com/thoughtbot/paperclip.git
./script/plugin install git://github.com/thoughtbot/paperclip.git
sudo script/plugin install git://github.com/thoughtbot/paperclip.git

a chaque fois il passe à la ligne et il installe rien du tout.

  • Question bête, est-ce que git est installé ?

  • Est-ce qu’un git clone git://github.com/thoughtbot/paperclip.git
    marche ?

  • Que donne un script/plugin -v install
    git://github.com/thoughtbot/paperclip.git
    ?

    – Jean-François.


http://twitter.com/underflow_

******* 1/ script/plugin install

marche

******* 2/ git clone git://github.com/thoughtbot/paperclip.git

kimkof@macbook-de-kimkof ~/Sites/testi $
git://github.com/thoughtbot/paperclip.git
-bash: git://github.com/thoughtbot/paperclip.git: No such file or
directory
kimkof@macbook-de-kimkof ~/Sites/testi $ git clone
git://github.com/thoughtbot/paperclip.git
-bash: git: command not found
kimkof@macbook-de-kimkof ~/Sites/testi $ sudo gem install git
Password:
Successfully installed git-1.0.5
1 gem installed
Installing ri documentation for git-1.0.5…
Installing RDoc documentation for git-1.0.5…
kimkof@macbook-de-kimkof ~/Sites/testi $ git clone
git://github.com/thoughtbot/paperclip.git
-bash: git: command not found

marche pas

****** 3/ script/plugin -v install
git://github.com/thoughtbot/paperclip.git

Plugins will be installed using http
git init
git pull --depth 1 git://github.com/thoughtbot/paperclip.git

Voila

Cordialement

Thomas

Le 30 décembre 2008 23:04, Jean-François Trân [email protected] a
écrit :

Le 30 décembre 2008 23:12, Thomas B. a écrit :

******* 1/ script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

marche

visiblement non puisque tu dis que ça n’installe pas le
plugin.

******* 2/ git clone git://github.com/thoughtbot/paperclip.git

kimkof@macbook-de-kimkof ~/Sites/testi $
git://github.com/thoughtbot/paperclip.git
-bash: git://github.com/thoughtbot/paperclip.git: No such file or directory

ça, ça ne risque pas de marcher, donc tout va bien.

kimkof@macbook-de-kimkof ~/Sites/testi $ git clone
git://github.com/thoughtbot/paperclip.git
-bash: git: command not found

git n’a pas l’air d’être
installé.

kimkof@macbook-de-kimkof ~/Sites/testi $ sudo gem install git

Il existe peut-être un gem qui s’appelle git, mais ce n’est pas
ce qu’on appelle communément git.

Je ne sais pas si tu es familier avec ce SCM, voici
quelques liens :

http://git.or.cz

http://git-scm.com
http://www.gitcasts.com (screencasts)
http://whygitisbetterthanx.com (advocacy)
Google Code Archive - Long-term storage for Google Code Project Hosting. (installer sous MacOS X,
jamais
essayé)
tu peux l’installer par MacPorts.

****** 3/ script/plugin -v install git://github.com/thoughtbot/paperclip.git

Plugins will be installed using http
git init
git pull --depth 1 git://github.com/thoughtbot/paperclip.git

D’ailleurs dans un répertoire d’essai, tu peux faire un git
init qui ne marchera pas, car tu n’as toujours pas installé
git.

– Jean-François.


http://twitter.com/underflow_

Le 30 décembre 2008 23:38, Thomas B. [email protected] a écrit :

Cela ca ne marcher pas

script/plugin install git://github.com/thoughtbot/paperclip.git

enfin quand je te ca marche pour : script/plugin install
GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

ah oui, bien vu, je n’avais pas fait attention au http://
Dans ce cas, Rails n’a pas besoin de git.

D’ailleurs, tu t’amuseras (??) à comparer en exécutant
la ligne de commande sans le slash à la fin de l’adresse :

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

versus

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

  • ./LICENSE
    […]

J’ai fait l 'install de git sur os x via le projet sur google code
[…]

Je vais lire tout ça merci beaucoup Jean-François.

J’ai oublié un lien intéressant, une jolie cheat sheet sur Git :

(sans parler de la célèbre présentation de Linus Torvalds sur
Git chez Google)

– Jean-François.


http://twitter.com/underflow_

Cela ca ne marcher pas

script/plugin install git://github.com/thoughtbot/paperclip.git

enfin quand je te ca marche pour : script/plugin install

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

  • ./LICENSE
  • ./README.rdoc
  • ./Rakefile
  • ./generators/paperclip/USAGE
  • ./generators/paperclip/paperclip_generator.rb
  • ./generators/paperclip/templates/paperclip_migration.rb.erb
  • ./init.rb
  • ./lib/paperclip.rb
  • ./lib/paperclip/attachment.rb
  • ./lib/paperclip/callback_compatability.rb
  • ./lib/paperclip/geometry.rb
  • ./lib/paperclip/iostream.rb
  • ./lib/paperclip/processor.rb
  • ./lib/paperclip/storage.rb
  • ./lib/paperclip/thumbnail.rb
  • ./lib/paperclip/upfile.rb
  • ./paperclip.gemspec
  • ./shoulda_macros/paperclip.rb
  • ./tasks/paperclip_tasks.rake
  • ./test/attachment_test.rb
  • ./test/database.yml
  • ./test/fixtures/12k.png
  • ./test/fixtures/50x50.png
  • ./test/fixtures/5k.png
  • ./test/fixtures/bad.png
  • ./test/fixtures/text.txt
  • ./test/geometry_test.rb
  • ./test/helper.rb
  • ./test/integration_test.rb
  • ./test/iostream_test.rb
  • ./test/paperclip_test.rb
  • ./test/processor_test.rb
  • ./test/storage_test.rb
  • ./test/thumbnail_test.rb

J’ai fait l 'install de git sur os x via le projet sur google code

script/plugin -v install git://github.com/thoughtbot/paperclip.git
Plugins will be installed using http
git init
Initialized empty Git repository in
/Users/kimkof/Sites/testi/vendor/plugins/paperclip/.git/
git pull --depth 1 git://github.com/thoughtbot/paperclip.git
remote: Counting objects: 52, done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 52 (delta 3), reused 16 (delta 0)
Unpacking objects: 100% (52/52), done.
From git://github.com/thoughtbot/paperclip

  • branch HEAD → FETCH_HEAD
    removing: .git

Je vais lire tout ça merci beaucoup Jean-François.

Cordialement

Thomas

Le 30 décembre 2008 23:24, Jean-François Trân [email protected] a
écrit :

git n’a pas l’air d’être installé.
Git — Wikipédia

1 gem installed
Plugins will be installed using http
http://twitter.com/underflow_

Cordialement,
Beugin Thomas

Le 30 décembre 2008 23:57, Jean-François Trân [email protected] a écrit :

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

On voie les hash

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

Juste les nom de fichiers

Je viens de faire le test sans le /
J’ai entre “” une erreur

error: Unable to find ab63e6a9c0e49aa0cfac3e2ce244a94fa109f9cb under

Cannot obtain needed blob ab63e6a9c0e49aa0cfac3e2ce244a94fa109f9cb
while processing commit f1118c6bb4f6a1737589e24a9ab206512bbc9f3e.
fatal: Fetch failed.

alors que sans le avec le “/” j’ai pas d’erreur
Et par l’install via le git pas d’erreur aussi

Bon les screencast m’attende :slight_smile:

Cordialement,
Beugin Thomas

Le 31 décembre 2008 00:21, Thomas B. a écrit :

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

On voie les hash

Rails passe par git

script/plugin install GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord

Juste les nom de fichiers

Rails passe par Ruby :slight_smile: et utilise HTTP.

Je viens de faire le test sans le /
J’ai entre “” une erreur

error: Unable to find ab63e6a9c0e49aa0cfac3e2ce244a94fa109f9cb under
GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord
Cannot obtain needed blob ab63e6a9c0e49aa0cfac3e2ce244a94fa109f9cb
while processing commit f1118c6bb4f6a1737589e24a9ab206512bbc9f3e.
fatal: Fetch failed.

alors que sans le avec le “/” j’ai pas d’erreur

pas compris ta phrase,
tu veux dire avec git:// au lieu de http:// ?

Ah si, je viens de comprendre.

Quand on git pull ou qu’on git clone via le protocole HTTP, ça marche
moins bien et c’est moins efficace que le protocole git maison, où
Git récupèrera le repo par paquets, c’est pour ça qu’il faut
préférer les adresses git://

Et par l’install via le git pas d’erreur aussi

Oui via le protocole git:// c’est mieux.

Bon les screencast m’attende :slight_smile:

Après t’as peut-être aussi Github avec lequel tu devras te
familiariser, mais ceci est une autre histoire.

Tiens j’y pense, il y a un front-end MacOS X GitX,
pour Leopard seulement (snif)

http://gitx.frim.nl

– Jean-François.

PS. Et si vraiment tu t’intéresses au fonctionnement
interne de Git, il y a les slides/vidéos de Scott Schacon
lors de RailsConf et RubyConf qui sont très intéressants,
mais ce n’est pas trop pour le débutant en Git.


http://twitter.com/underflow_