Problèmes et questions sur les environnements graphiques et les applications.
Répondre

Trizen et sa configuration

#1Messageil y a 6 ans

Bonne nuit,

Ayant lu sur le web que yaourt n'était plus maintenu (on en apprend tous les jours et après vérification, cela s'avère exact), j'ai installé Trizen.
Les commandes - les principales - sont les mêmes qu'avec yaourt.
Mais, il y a bien sûr un mais, sinon je ne serais pas occupé à écrire, il y a eu une màj de Trizen.
Depuis (ou déjà avant je ne peux le préciser, ne l'ayant pas utilisé depuis son installation) lorsque je veux l'utiliser j'ai une erreur par exemple une recherche sur wine :

[bruno@bruno ~]$ trizen -r wine
Can't locate object method "to" via package "clone" (perhaps you forgot to load "clone"?) at /home/bruno/.config/trizen/trizen.conf line 6.
Compilation failed in require at /usr/bin/trizen line 290.
[bruno@bruno ~]$ 
De plus, dans le "code", on parle du package "clone", j'ai beau chercher, je ne le trouve nulle part ce paquet "clone", aussi bien dans la logithèque que dans mes paquets installés et il ne fait pas partie de ses dépendances non plus. Ou alors c'est le "clone" utilisé lors de la compilation dans AUR ? Mais j'ai fait une désinstallation-réinstallation et rien n'y change.

Je veux bien vous donner le fichier /usr/bin/trizen/trizen.conf, mais il est très long...

Je sais que Trizen est codé en Perl. Et là, je n'y connais fichtre rien, que dalle !!

L'un de vous a-t-il connu ce problème, si oui comment l'avez-vous résolu ?

Merci de votre patience avec mes questions idiotes !!

Trizen et sa configuration

#2Messageil y a 6 ans

bonjour

non yaourt est toujours actif, tu confonds avec pacaur qui lui est bien abandonné (pour l'instant)

Pour une recherche c'est -Ss comme yaourt et non -r (pas vu dans la doc:confus: )

Trizen et sa configuration

#3Messageil y a 6 ans

Bonjour.
Oui, c'est bien pacaur et non yaourt qui qui n'est plus maintenu. Quand on fait yaourt -G <nom_du_paquet> on fait en fait un git clone https://aur.archlinux.org/paquet.git ce qui télécharge les sources dans un dossier , généralement dans le /home.
Pour trizen, ça doit être la même chose.

Trizen et sa configuration

#4Messageil y a 6 ans

Bon ben pour trize -Ss, j'ai toujours le même problème :

[bruno@bruno ~]$ trizen -Ss (nom_paquet)
Can't locate object method "to" via package "clone" (perhaps you forgot to load "clone"?) at /home/bruno/.config/trizen/trizen.conf line 6.
Compilation failed in require at /usr/bin/trizen line 290.
[bruno@bruno ~]$ 
lemust83 a écrit : il y a 6 ans Bonjour.
Oui, c'est bien pacaur et non yaourt qui qui n'est plus maintenu. Quand on fait yaourt -G <nom_du_paquet> on fait en fait un git clone https://aur.archlinux.org/paquet.git ce qui télécharge les sources dans un dossier , généralement dans le /home.
Pour trizen, ça doit être la même chose.
Oui j'ai bien un .trizen dans /home, mais ça ne change rien à mon problème. :desole:

Voici le contenu de trizen.conf :

#!/usr/bin/perl

# trizen configuration file
# Updated on Sun Dec 31 23:25:24 2017

our $CONFIG = {
  aur_results_last_modified    => 1,                          #  bool -- Show the date in AUR results when the package was last updated.
  aur_results_popularity       => 1,                          #  bool -- Show the popularity score in AUR results.
  aur_results_show_installed   => 1,                          #  bool -- Show when a package is installed in AUR results.
  aur_results_sort_by          => "name",                     #   str -- Sort the AUR results by: "name", "votes", "popularity" or "date"
  aur_results_sort_order       => "ascending",                #   str -- Sort the AUR results in "ascending" or "descending" order.
  aur_results_votes            => 1,                          #  bool -- Show the number of votes in AUR results.
  clone_dir                    => "/home/bruno/log",        #   str -- 
Absolute path to the directory where to clone and build packages.
  debug                        => 0,                          #  bool -- Verbose mode.
  force                        => 0,                          #  bool -- Pass the `--force` flag to `pacman`.
  git_clone_depth              => 0,                          #   int -- Pass the `--depth int` flag to `git clone`. (0 means no limit)
  install_built_with_noconfirm => 0,                          #  bool -- Install built packages with `--noconfirm`.
  lwp_env_proxy                => 1,                          #  bool -- Use proxy settings defined in `env` (if any).
  lwp_show_progress            => 0,                          #  bool -- Show the HTTPS requests made by LWP::UserAgent to the AUR servers.
  lwp_timeout                  => 60,                         #   int -- Seconds after which an HTTPS connection is aborted.
  makepkg_command              => "/usr/bin/makepkg -scf",    #   str -- The `makepkg` command that is used internally in building a package.
  movepkg                      => 0,                          #  bool -- Move built packages in the directory `movepkg_dir`.
  movepkg_dir                  => "/var/cache/pacman/pkg",    #   str -- Absolute path to the directory where to move built packages (with `movepkg`).
  nocolors                     => 0,                          #  bool -- Disable output colors for `trizen`.
  noedit                       => 0,                          #  bool -- Do not prompt to edit files when installing an AUR package.
  noinfo                       => 0,                          #  bool -- Do not display package information when installing an AUR package.
  noinstall                    => 0,                          #  bool -- Do not install built packages -- builds only.
  nopull                       => 0,                          #  bool -- Do not `git pull` new changes from the AUR git server.
  packages_in_stats            => 5,                          #   int -- The number of packages to display in `--stats`
  pacman_command               => "/usr/bin/pacman",          #   str -- The `pacman` command that is used internally for pacman operations.
  pacman_local_dir             => "/var/lib/pacman/local",    #   str -- Absolute path to the pacman's local directory.
  quiet                        => 0,                          #  bool -- Do not display any warnings.
  recompute_deps               => 1,                          #  bool -- Recompute the dependencies of a package after its build files are inspected.
  show_build_files_content     => 1,                          #  bool -- Show the content of the build files of a package before building it.
  show_comments                => 0,                          #  bool -- Show AUR comments for a package before building it.
  show_inexistent              => 1,                          #  bool -- Warn about packages that do not exist in AUR, during -Su.
  show_ood                     => 0,                          #  bool -- Warn about out-of-date marked packages, during -Su.
  show_unmaintained            => 1,                          #  bool -- Warn about unmaintained packages, during -Su.
  skipinteg                    => 0,                          #  bool -- Pass the `--skipinteg` argument to `makepkg`.
  split_packages               => 1,                          #  bool -- Ask about installing the other parts of a split package.
  ssl_verify_hostname          => 1,                          #  bool -- Ensure LWP::UserAgent connects to servers that have a valid certificate.
  su_command                   => "/usr/bin/su -c",           #   str -- Command used when special permissions are required and `use_sudo` is set to 0.
  sudo_autorepeat              => 0,                          #  bool -- Automatically repeat `sudo -v` in the background after a `sudo` command was first executed.
  sudo_autorepeat_at_runtime   => 0,                          #  bool -- Execute `sudo -v` when `trizen` is first executed and apply the behavior of `sudo_autorepeat`.
  sudo_autorepeat_interval     => 180,                        #   int -- Interval, in seconds, after which `sudo -v` is executed in background (with `sudo_autorepeat`).
  sudo_command                 => "/usr/bin/sudo",            #   str -- Command used when special permissions are required and `use_sudo` is set to 1.
  use_sudo                     => 1,                          #  bool -- Use the `sudo` command when special permissions are required.
  VERSION                      => 1.37,                       # float -- The current version number of `trizen`.
}

Trizen et sa configuration

#5Messageil y a 6 ans

Trouvé la solution.

En fait, j'avais dirigé les logs de trizen dans un dossier log créé dans mon /home (conseil de F. Bezier), j'ai sûrement commis une erreur car dans le fichier de configuration d'origine ces logs vont dans /temp. Et dans /home/.config/trizen/trizen, j'avais bien spécifié que les logs aillent dans le dossier log créé dans /home.
J'ai donc supprimé ce dossier log, désinstallé Trizen, puis réinstallé et maintenant, il fonctionne nickel.
Voir sa vidéo : Trizen

Trizen et sa configuration

#6Messageil y a 6 ans

À noter qu'on peut utiliser l'option -r en complément de -Ss, -Ss permet une recherche dans les dépôts officiels Manjaro et dans AUR, -Ssr seulement dans les dépôts Manjaro et -Ssa seulement dans AUR.
Répondre