Installation sous Linux
Moderators: XnTriq, helmut, xnview
Installation sous Linux
Bonjour,
Est-il possible de publier un fichier "Lisez-moi" dans le paquet TGZ. N'étant pas un cador sur Fedora, j'ai eu des pb de liens symboliques pour lancer XnView et d'association de fichiers (type-mime). Une autre solution serait de coller un post en tête des FAQ.
Merci
Bernard
Est-il possible de publier un fichier "Lisez-moi" dans le paquet TGZ. N'étant pas un cador sur Fedora, j'ai eu des pb de liens symboliques pour lancer XnView et d'association de fichiers (type-mime). Une autre solution serait de coller un post en tête des FAQ.
Merci
Bernard
Re: Installation sous Linux
Bonjour Bernard,
quelles ont été les manifestations de vos ennuis, au juste?
Je note que l'archive 32-bit contient un fichier README qui est absent de l'archive 64-bit.
Pour une installation sous Fedora, je ferais:
# su
Puis un peu de ménage (on vire /opt/XnView et l'éventuel fichier .desktop ajouté sous /usr/share/applications/):
# test -d /opt/XnView && rm -Rf /opt/XnView
# test -f /usr/share/applications//XnView.desktop && rm -f /usr/share/applications/XnView.desktop
Puis on installe le produit:
# cd /opt
# tar xzf "$HOME/Downloads/XnViewMP-linux-x64.tgz" (si tant est que le fichier .tgz est à cet endroit, et qu'il s'agit de la version 64-bit, évidemment)
# ln -sf /opt/XnView/XnView.desktop /usr/share/applications/XnView.desktop
XnView sera à partir de cet instant disponible dans la section Graphics du menu principal du bureau.
quelles ont été les manifestations de vos ennuis, au juste?
Je note que l'archive 32-bit contient un fichier README qui est absent de l'archive 64-bit.
Pour une installation sous Fedora, je ferais:
# su
Puis un peu de ménage (on vire /opt/XnView et l'éventuel fichier .desktop ajouté sous /usr/share/applications/):
# test -d /opt/XnView && rm -Rf /opt/XnView
# test -f /usr/share/applications//XnView.desktop && rm -f /usr/share/applications/XnView.desktop
Puis on installe le produit:
# cd /opt
# tar xzf "$HOME/Downloads/XnViewMP-linux-x64.tgz" (si tant est que le fichier .tgz est à cet endroit, et qu'il s'agit de la version 64-bit, évidemment)
# ln -sf /opt/XnView/XnView.desktop /usr/share/applications/XnView.desktop
XnView sera à partir de cet instant disponible dans la section Graphics du menu principal du bureau.
Re: Installation sous Linux
Merci pour l'aide.
J'ai suivi les étapes sauf que je n'avais rien dans /opt/XnView ni dans /usr/share/applications/
Mais j'ai dû louper qqch car XnView n'apparaît pas dans la section Graphisme. L'appli par défaut pour .png et .jpg reste le Visionneur d'images de Gnome.
J'ai suivi les étapes sauf que je n'avais rien dans /opt/XnView ni dans /usr/share/applications/
Mais j'ai dû louper qqch car XnView n'apparaît pas dans la section Graphisme. L'appli par défaut pour .png et .jpg reste le Visionneur d'images de Gnome.
Re: Installation sous Linux
Le .desktop de XnView indique au desktop (GNOME ici) que l'appli peut gérer les types graphiques (bmp; tif; png; jpeg il me semble, je n'ai pas le .desktop sous les yeux) mais pas forcément que ce doit être l'appli par défaut pour ouvrir ce type. En fait des applis installées s'enregistrent et la première arrivée décroche le gros lot. Si on la désinstalle, c'est la seconde enregistrée qui aura la main. C'est ainsi que cela fonctionne lorsque des applis s'installent et déclarent les types de fichiers qu'elles supportent.
Si un utilisateur veut changer l'appli par défaut pour tel ou tel type; soit il le fait avec les outils desktop adéquats, soit il le fait pour chaque type de fichier, en cliquant à droite sur un fichier du type souhaité, sous Nautilus, et en changeant l'appli par défaut pour ce type.
Si un utilisateur veut changer l'appli par défaut pour tel ou tel type; soit il le fait avec les outils desktop adéquats, soit il le fait pour chaque type de fichier, en cliquant à droite sur un fichier du type souhaité, sous Nautilus, et en changeant l'appli par défaut pour ce type.
Re: Installation sous Linux
Dans /usr/share/applications j'ai un fichier "XnView Multi Platform" qui contient des liens Exec et Icon vers /home/pierre/Desktop/XnView/xnview.sh
J'ai changé les liens en /opt/XnView/xnview.sh mais rien ne se passe quand je clique sur "XnView Multi Platform". L'appli XnView n'apparaît pas non plus dans le menu Graphisme. De même XnView n'apparaît pas dans les applications disponibles dans "Ouvrir avec..."
Comme je ne voudrais pas faire de dégats dans ma nouvelle install Fedora 23, je préfère demander l'avis des spécialistes
J'ai changé les liens en /opt/XnView/xnview.sh mais rien ne se passe quand je clique sur "XnView Multi Platform". L'appli XnView n'apparaît pas non plus dans le menu Graphisme. De même XnView n'apparaît pas dans les applications disponibles dans "Ouvrir avec..."
Comme je ne voudrais pas faire de dégats dans ma nouvelle install Fedora 23, je préfère demander l'avis des spécialistes
Re: Installation sous Linux
Si rien ne se passe quand vous cliquez sur le "XnView Multi Platform", c'est que sont contenu est incorrect, notamment la ligne Exec.
Admettons que la ligne Exec soit (en fonction de ce que vous nous avez indiqué):
Exec=/opt/XnView/xnview.sh
Que se passe-t-il si dans un terminal, vous tapez la commande suivante:
Et:
Et tant qu'on y est:
Admettons que la ligne Exec soit (en fonction de ce que vous nous avez indiqué):
Exec=/opt/XnView/xnview.sh
Que se passe-t-il si dans un terminal, vous tapez la commande suivante:
Code: Select all
/opt/XnView/xnview.sh
Code: Select all
ls -l /opt/XnView
Code: Select all
cat /usr/share/applications/XnView.desktop
Re: Installation sous Linux
Voilà les résultats :
1
/opt/XnView/XnView: error while loading shared libraries: libgstreamer-0.10.so.0: cannot open shared object file: No such file or directory
2
total 11448
drwxrwxr-x. 5 bernard bernard 4096 27 oct. 16:59 AddOn
-rw-r--r--. 1 bernard bernard 4172 3 févr. 2012 country.txt
drwxr-xr-x. 2 bernard bernard 4096 15 sept. 13:58 language
drwxr-xr-x. 9 bernard bernard 4096 27 oct. 17:00 lib
-rw-r--r--. 1 bernard bernard 851 2 sept. 2011 license.txt
drwxrwxr-x. 2 bernard bernard 4096 27 oct. 17:00 Plugins
-rw-r--r--. 1 bernard bernard 47 11 avril 2012 PrintPresets.txt
-rw-r--r--. 1 bernard bernard 40 5 sept. 2011 qt.conf
drwxr-xr-x. 3 bernard bernard 4096 15 sept. 12:05 UI
-rw-rw-r--. 1 bernard bernard 43745 26 oct. 16:47 WhatsNew.txt
-rwxrwxr-x. 1 bernard bernard 11596296 26 oct. 18:13 XnView
-rwxr--r-x. 1 bernard bernard 8604 20 nov. 2010 xnview_2.png
-rw-r--r--. 1 bernard bernard 283 6 janv. 11:45 XnView.desktop
-rw-r--r--. 1 bernard bernard 235 7 juin 2012 XnView.desktop~
-rwxr--r-x. 1 bernard bernard 8830 5 déc. 2010 xnview.png
-rwxr-xr-x. 1 bernard bernard 152 11 juin 2012 xnview.sh
3
[Desktop Entry]
Encoding=UTF-8
Terminal=0
Exec=/opt/XnView/xnview.sh
Icon=/opt/XnView/xnview.png
Type=Application
Categories=Graphics;
StartupNotify=true
Name=XnView Multi Platform
GenericName=XnViewMP
StartupNotify=true
MimeType=image/bmp;image/jpeg;image/png;image/tiff;image/gif;
1
/opt/XnView/XnView: error while loading shared libraries: libgstreamer-0.10.so.0: cannot open shared object file: No such file or directory
2
total 11448
drwxrwxr-x. 5 bernard bernard 4096 27 oct. 16:59 AddOn
-rw-r--r--. 1 bernard bernard 4172 3 févr. 2012 country.txt
drwxr-xr-x. 2 bernard bernard 4096 15 sept. 13:58 language
drwxr-xr-x. 9 bernard bernard 4096 27 oct. 17:00 lib
-rw-r--r--. 1 bernard bernard 851 2 sept. 2011 license.txt
drwxrwxr-x. 2 bernard bernard 4096 27 oct. 17:00 Plugins
-rw-r--r--. 1 bernard bernard 47 11 avril 2012 PrintPresets.txt
-rw-r--r--. 1 bernard bernard 40 5 sept. 2011 qt.conf
drwxr-xr-x. 3 bernard bernard 4096 15 sept. 12:05 UI
-rw-rw-r--. 1 bernard bernard 43745 26 oct. 16:47 WhatsNew.txt
-rwxrwxr-x. 1 bernard bernard 11596296 26 oct. 18:13 XnView
-rwxr--r-x. 1 bernard bernard 8604 20 nov. 2010 xnview_2.png
-rw-r--r--. 1 bernard bernard 283 6 janv. 11:45 XnView.desktop
-rw-r--r--. 1 bernard bernard 235 7 juin 2012 XnView.desktop~
-rwxr--r-x. 1 bernard bernard 8830 5 déc. 2010 xnview.png
-rwxr-xr-x. 1 bernard bernard 152 11 juin 2012 xnview.sh
3
[Desktop Entry]
Encoding=UTF-8
Terminal=0
Exec=/opt/XnView/xnview.sh
Icon=/opt/XnView/xnview.png
Type=Application
Categories=Graphics;
StartupNotify=true
Name=XnView Multi Platform
GenericName=XnViewMP
StartupNotify=true
MimeType=image/bmp;image/jpeg;image/png;image/tiff;image/gif;
Re: Installation sous Linux
Ah eh bien voilà! Il vous manque la librairie gstreamer. À installer donc avec votre gestionnaire de paquet habituel (je ne sais pas si c'est toujours yum sous Fed23)!
Re: Installation sous Linux
Effectivement, on progresse. Maintenant j'ai XnView Multi Platform qui apparaît dans le menu Graphisme, mais il ne démarre toujours pas et n'apparaît pas non plus dans les applications de "Ouvrir avec..."
En tous cas merci pour l'aide )
En tous cas merci pour l'aide )
Re: Installation sous Linux
Il me manquait encore libgstapp-0.10.so.0
Puis j'ai réinstallé Qt car j'avais ce message :
Qt: Session management error: None of the authentication protocols specified are supported
Mais rien n'y fait
# /opt/XnView/xnview.sh
Fontconfig error: line 37788927: syntax error
Fontconfig error: Cannot load default config file
Qt: Session management error: None of the authentication protocols specified are supported
Fontconfig error: line 39261583: syntax error
Fontconfig error: Cannot load default config file
/opt/XnView/xnview.sh : ligne 5 : 4226 Erreur de segmentation (core dumped)"$dirname"/XnView "$@"
Puis j'ai réinstallé Qt car j'avais ce message :
Qt: Session management error: None of the authentication protocols specified are supported
Mais rien n'y fait
# /opt/XnView/xnview.sh
Fontconfig error: line 37788927: syntax error
Fontconfig error: Cannot load default config file
Qt: Session management error: None of the authentication protocols specified are supported
Fontconfig error: line 39261583: syntax error
Fontconfig error: Cannot load default config file
/opt/XnView/xnview.sh : ligne 5 : 4226 Erreur de segmentation (core dumped)"$dirname"/XnView "$@"
Re: Installation sous Linux
... et bizarrement, quand je renouvelle la commande les Fontconfig errors ne proviennent pas de la même ligne.
C'est peut-être un sujet qui concerne un admin XnView ??
# /opt/XnView/xnview.sh
Fontconfig error: line 46062831: syntax error
Fontconfig error: Cannot load default config file
Qt: Session management error: None of the authentication protocols specified are supported
Fontconfig error: line 47535503: syntax error
Fontconfig error: Cannot load default config file
/opt/XnView/xnview.sh : ligne 5 : 4413 Erreur de segmentation (core dumped)"$dirname"/XnView "$@"
# /opt/XnView/xnview.sh
Fontconfig error: line 44354863: syntax error
Fontconfig error: Cannot load default config file
Qt: Session management error: None of the authentication protocols specified are supported
Fontconfig error: line 45827903: syntax error
Fontconfig error: Cannot load default config file
/opt/XnView/xnview.sh : ligne 5 : 4441 Erreur de segmentation (core dumped)"$dirname"/XnView "$@"
C'est peut-être un sujet qui concerne un admin XnView ??
# /opt/XnView/xnview.sh
Fontconfig error: line 46062831: syntax error
Fontconfig error: Cannot load default config file
Qt: Session management error: None of the authentication protocols specified are supported
Fontconfig error: line 47535503: syntax error
Fontconfig error: Cannot load default config file
/opt/XnView/xnview.sh : ligne 5 : 4413 Erreur de segmentation (core dumped)"$dirname"/XnView "$@"
# /opt/XnView/xnview.sh
Fontconfig error: line 44354863: syntax error
Fontconfig error: Cannot load default config file
Qt: Session management error: None of the authentication protocols specified are supported
Fontconfig error: line 45827903: syntax error
Fontconfig error: Cannot load default config file
/opt/XnView/xnview.sh : ligne 5 : 4441 Erreur de segmentation (core dumped)"$dirname"/XnView "$@"
Re: Installation sous Linux
dans ce cas il faut utiliser la version spéciale ArchLinux http://newsgroup.xnview.com/viewtopic.php?f=82&t=32303
Pierre.
Re: Installation sous Linux
J'ai encore un petit pb :
# /opt/XnView/XnView-archx64
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Reinstalling the application may fix this problem.
Abandon (core dumped)
J'ai désinstallé et réinstallé qt sans succès et j'avoue que les forums consultés sur ce pb me dépassent légèrement !
# /opt/XnView/XnView-archx64
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Reinstalling the application may fix this problem.
Abandon (core dumped)
J'ai désinstallé et réinstallé qt sans succès et j'avoue que les forums consultés sur ce pb me dépassent légèrement !
Re: Installation sous Linux
Il faut renommer XnView-archx64 en XnView (éventuellement faire une backup du second avant), afin que xnview.sh le prenne en compte (et le .desktop aussi), sinon il faudra exporter LD_LIBRARY_PATH et QT_PLUGIN_PATH (ce que fait le .sh).
# cd /opt/XnView
# mv -f XnView XnView.orig <- éventuelle copie de sauvegarde
# mv -f XnView-archx64 XnView <- on renomme le binaire (pour le .sh et le .desktop)
# sh xnview.sh <- on lance le bousin
Ceci dit, je ne suis pas spécialement confiant en le fait que ce binaire puisse tourner sur la Fedora 23, sur CentOS7 il ne passe pas en tout cas. À essayer!
# cd /opt/XnView
# mv -f XnView XnView.orig <- éventuelle copie de sauvegarde
# mv -f XnView-archx64 XnView <- on renomme le binaire (pour le .sh et le .desktop)
# sh xnview.sh <- on lance le bousin
Ceci dit, je ne suis pas spécialement confiant en le fait que ce binaire puisse tourner sur la Fedora 23, sur CentOS7 il ne passe pas en tout cas. À essayer!
Re: Installation sous Linux
Je dois être neuneu
# sh xnview.sh
xnview.sh: ligne 5: /opt/XnView/XnView: Permission non accordée
et pourtant j'ai mis les droits maximum
drwxrwxr-x. 5 bernard bernard 4096 27 oct. 16:59 AddOn
-rw-r--r--. 1 bernard bernard 4172 3 févr. 2012 country.txt
drwxr-xr-x. 2 bernard bernard 4096 15 sept. 13:58 language
drwxr-xr-x. 9 bernard bernard 4096 27 oct. 17:00 lib
-rw-r--r--. 1 bernard bernard 851 2 sept. 2011 license.txt
drwxrwxr-x. 2 bernard bernard 4096 27 oct. 17:00 Plugins
-rw-r--r--. 1 bernard bernard 47 11 avril 2012 PrintPresets.txt
-rw-r--r--. 1 bernard bernard 40 5 sept. 2011 qt.conf
drwxr-xr-x. 3 bernard bernard 4096 15 sept. 12:05 UI
-rw-rw-r--. 1 bernard bernard 43745 26 oct. 16:47 WhatsNew.txt
-rw-rw-r--. 1 bernard bernard 11203704 7 janv. 09:47 XnView
-rwxr--r-x. 1 bernard bernard 8604 20 nov. 2010 xnview_2.png
-rw-r--r--. 1 bernard bernard 284 8 janv. 07:54 XnView.desktop
-rw-r--r--. 1 bernard bernard 235 7 juin 2012 XnView.desktop~
-rwxr--r-x. 1 bernard bernard 8830 5 déc. 2010 xnview.png
-rwxrwxrwx. 1 bernard bernard 152 11 juin 2012 xnview.sh
XnView sait se faire désirer !
# sh xnview.sh
xnview.sh: ligne 5: /opt/XnView/XnView: Permission non accordée
et pourtant j'ai mis les droits maximum
drwxrwxr-x. 5 bernard bernard 4096 27 oct. 16:59 AddOn
-rw-r--r--. 1 bernard bernard 4172 3 févr. 2012 country.txt
drwxr-xr-x. 2 bernard bernard 4096 15 sept. 13:58 language
drwxr-xr-x. 9 bernard bernard 4096 27 oct. 17:00 lib
-rw-r--r--. 1 bernard bernard 851 2 sept. 2011 license.txt
drwxrwxr-x. 2 bernard bernard 4096 27 oct. 17:00 Plugins
-rw-r--r--. 1 bernard bernard 47 11 avril 2012 PrintPresets.txt
-rw-r--r--. 1 bernard bernard 40 5 sept. 2011 qt.conf
drwxr-xr-x. 3 bernard bernard 4096 15 sept. 12:05 UI
-rw-rw-r--. 1 bernard bernard 43745 26 oct. 16:47 WhatsNew.txt
-rw-rw-r--. 1 bernard bernard 11203704 7 janv. 09:47 XnView
-rwxr--r-x. 1 bernard bernard 8604 20 nov. 2010 xnview_2.png
-rw-r--r--. 1 bernard bernard 284 8 janv. 07:54 XnView.desktop
-rw-r--r--. 1 bernard bernard 235 7 juin 2012 XnView.desktop~
-rwxr--r-x. 1 bernard bernard 8830 5 déc. 2010 xnview.png
-rwxrwxrwx. 1 bernard bernard 152 11 juin 2012 xnview.sh
XnView sait se faire désirer !