Re: lignes d'un fichier en C ou C++

トップ ページ

このメッセージに返信
著者: anne.guilde@free.fr
日付:  
To: Guilde
題目: Re: lignes d'un fichier en C ou C++
Le 04/04/2018 à 13:37, anne-guilde-free a écrit :
> Le 04/04/2018 à 13:01, Frédéric a écrit :
>> Le 04/04/2018, anne.guilde@??? a écrit :
>>
>>> Pour l'instant, je n'ose pas faire la commande # make install
>>>
>>> J'ai bien mon fichier
>>> # updatedb
>>> # locate libtag.a
>>> /home/anne/sda1/anne/Documents/anne/linux/vvv-1/taglib-1.11.1/taglib/libtag.a
>>>
>>>
>>> Quand j'ai fait la commande
>>> # cmake -DBUILD_STATIC_LIBS=ON  -DCMAKE_INSTALL_PREFIX=/usr/local
>>> J'ai mis les bonnes options ou faut-il ajouter une option?
>>
>> La doc dit qu'il faut mettre l'autre variable à OFF, mais bon, ça a l'air
>> d'avoir compilé la librairie statique.
>>
>
> J'ai encore raté épisode
> Pas vu qu'il faut mettre l'autre variable à OFF.
> Tu as vu cela où?
>
>> Pour être sûr de ne pas foutre la merde avec les make install, je ne le
>> fais jamais en root. Pour ça, il suffit que tu sois dans le groups staff,
>> car /usr/local a les droits en écriture pour ce groupe.
>>
>> Du coup, si le make install merde et va dans /usr au lieu de /usr/local,
>> ça te sort une erreur de droits, et tu ne peux pas foutre le bordel dans
>> l'arborescence debian.
>>
>> Enfin, si tu as pris la peine de récupérer la même version que celle dans
>> ta debian, tu peux juste copier libtag.a dans /usr/local/lib
>> (ou /usr/local/lib/taglib ?), et utiliser le paquet debian.
>>
>
> J'avais compilé en root
> Je recommence avec anne
>


Je suis avec le user anne
J'ai ajouté le groupe staff

$ cmake -DBUILD_STATIC_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local
$ make

$ make install
[ 98%] Built target tag
[100%] Built target tag_c
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/taglib-config
CMake Error at cmake_install.cmake:44 (file):
file INSTALL cannot copy file

"/home/anne/sda1/anne/Documents/anne/linux/vvv-1/taglib-1.11.1/taglib-config"
to "/usr/local/bin/taglib-config".


Makefile:83 : la recette pour la cible « install » a échouée
make: *** [install] Erreur 1


# locate taglib-config
...
/usr/bin/taglib-config

# apt-file search taglib-config
libtag1-dev: /usr/bin/taglib-config
ou
# dpkg -S taglib-config
libtag1-dev:amd64: /usr/bin/taglib-config

J'ai enlevé le paquet libtag1-dev

# dpkg -S taglib-config
dpkg-query: aucun chemin ne correspond à *taglib-config*

idem pour le make install

$ make install
[ 98%] Built target tag
[100%] Built target tag_c
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/taglib-config
CMake Error at cmake_install.cmake:44 (file):
file INSTALL cannot copy file

"/home/anne/sda1/anne/Documents/anne/linux/vvv-1/taglib-1.11.1/taglib-config"
to "/usr/local/bin/taglib-config".


Makefile:83 : la recette pour la cible « install » a échouée
make: *** [install] Erreur 1

Faut faire en root?

Anne