1

Temat: Libpthread reinstall?

Witam! Chciałem stworzyć swoją chmurę, posługując się tym poradnikiem http://openrouter.info/forum/viewtopic. … amp;t=1236
Wszystko szło dobrze do momentu wydania polecenia

/etc/init.d/lighttpd start

wtedy konsola wyrzuca

/usr/sbin/lighttpd: can't load library 'libpthread.so.0'

Pomyślałem sobie, może po prostu się nie zainstalowały. No to opkg install libpthread, ale konsola zwraca taki tekst:
root@Gargoyle:~# opkg install libpthread
Package libpthread (0.9.33.2-1) installed in plugin_root is up to date.
Collected errors:
* opkg_conf_parse_file: Duplicate src declaration (gargoylepl_plugins http://ecco.selfip.net/gargoyle-pl/atti … x/plugins). Skipping.

A ja nadal nie mogę wystartować lighttpd.

2

Odp: Libpthread reinstall?

Zrób

opkg install opkg
opkg -force-reinstall libpthread

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Libpthread reinstall?

root@Gargoyle:~# opkg install opkg
Package opkg (618-3) installed in root is up to date.
Collected errors:
* opkg_conf_parse_file: Duplicate src declaration (gargoylepl_plugins http://ecco.selfip.net/gargoyle-pl/atti … x/plugins). Skipping.
root@Gargoyle:~# opkg -force-reinstall libpthread
opkg: unknown sub-command libpthread
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade <pkgs>          Upgrade packages
        install <pkgs>          Install package(s)
        configure <pkgs>        Configure unpacked package(s)
        remove <pkgs|regexp>    Remove package(s)
        flag <flag> <pkgs>      Flag package(s)
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
        list                    List available packages
        list-installed          List installed packages
        list-upgradable         List installed and upgradable packages
        list-changed-conffiles  List user modified configuration files
        files <pkg>             List files belonging to <pkg>
        search <file|regexp>    List package providing <file>
        find <regexp>           List packages whose name or description matches <regexp>
        info [pkg|regexp]       Display all info for <pkg>
        status [pkg|regexp]     Display all status for <pkg>
        download <pkg>          Download <pkg> to current directory
        compare-versions <v1> <op> <v2>
                            compare versions using <= < > >= = << >>
        print-architecture      List installable package architectures
        depends [-A] [pkgname|pat]+
        whatdepends [-A] [pkgname|pat]+
        whatdependsrec [-A] [pkgname|pat]+
        whatrecommends[-A] [pkgname|pat]+
        whatsuggests[-A] [pkgname|pat]+
        whatprovides [-A] [pkgname|pat]+
        whatconflicts [-A] [pkgname|pat]+
        whatreplaces [-A] [pkgname|pat]+

Options:
        -A                      Query all packages not just those installed
        -V[<level>]             Set verbosity level to <level>.
        --verbosity[=<level>]   Verbosity levels:
                                        0 errors only
                                        1 normal messages (default)
                                        2 informative messages
                                        3 debug
                                        4 debug level 2
        -f <conf_file>          Use <conf_file> as the opkg configuration file
        --conf <conf_file>
        --cache <directory>     Use a package cache
        -d <dest_name>          Use <dest_name> as the the root directory for
        --dest <dest_name>      package installation, removal, upgrading.
                                <dest_name> should be a defined dest name from
                                the configuration file, (but can also be a
                                directory name in a pinch).
        -o <dir>                Use <dir> as the root directory for
        --offline-root <dir>    offline installation of packages.
        --add-arch <arch>:<prio>        Register architecture with given priority
        --add-dest <name>:<path>        Register destination with given path

Force Options:
        --force-depends         Install/remove despite failed dependencies
        --force-maintainer      Overwrite preexisting config files
        --force-reinstall       Reinstall package(s)
        --force-overwrite       Overwrite files from other package(s)
        --force-downgrade       Allow opkg to downgrade packages
        --force-space           Disable free space checks
        --force-postinstall     Run postinstall scripts even in offline mode
        --force-remove  Remove package even if prerm script fails
        --noaction              No action -- test only
        --download-only No action -- download only
        --nodeps                Do not follow dependencies
        --nocase                Perform case insensitive pattern matching
        --force-removal-of-dependent-packages
                                Remove package and all dependencies
        --autoremove            Remove packages that were installed
                                automatically to satisfy dependencies
        -t                      Specify tmp-dir.
        --tmp-dir               Specify tmp-dir.

regexp could be something like 'pkgname*' '*file*' or similar
e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'
root@Gargoyle:~#

4

Odp: Libpthread reinstall?

opkg --force-reinstall install  libpthread

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Libpthread reinstall?

root@Gargoyle:~# opkg --force-reinstall install  libpthread
Refusing to remove essential package libpthread.
        Removing an essential package may lead to an unusable system, but if
        you enjoy that kind of pain, you can force opkg to proceed against
        its will with the option: --force-removal-of-essential-packages
No packages removed.
Package libpthread (0.9.33.2-1) installed in plugin_root is up to date.
Collected errors:
* opkg_conf_parse_file: Duplicate src declaration (gargoylepl_plugins http://ecco.selfip.net/gargoyle-pl/atti … x/plugins). Skipping.

6

Odp: Libpthread reinstall?

No dobra, pyszczy się straszliwie. Najprościej - odinstaluj wszystkie aplikacje które z niego korzystają, skorzystaj z tej opcji lub po prostu rozpakuj ten pakiet i zainstaluj go w /lib

PS. Podejrzewam że będziesz miał więcej takich problemów bo przez gargoyle próbuje Ci to instalować w plugin-root - czasami nie wskazywało to na jakiś nośnik USB.
PS2. Coraz bardziej mi dokucza ta opcja i chyba po prostu wywalę ją w następnym wydaniu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Libpthread reinstall?

Ok, a jak to odinstalować? Jakaś komenda która zrobi to za 1 razem? Router to MR3020 z extrootem i możliwością instalacji pluginów.

8

Odp: Libpthread reinstall?

Od razu nie ma. Jak zrobisz opkg remove libpthread to Ci powie co od tego zależy i co masz odinstalować.

Prościej będzie jak przeniesiesz pliki do /lib

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Libpthread reinstall?

Jak je przenieść?

10

Odp: Libpthread reinstall?

Gdzie Ci plugin_root wskazuje (lub wskazywał?) Poleceniem cp.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Libpthread reinstall?

Witam Cezary odkopuje temat

root@Gargoyle:~# opkg install libpthread
Preparing to install the following packages, which will require 30278 bytes:
        libpthread

Preparing to install package libpthread...
        Downloading...
        Downloaded libpthread successfully.
        Installing libpthread...
        Successfully installed libpthread.
Installation of packages successful.

root@Gargoyle:~# /etc/init.d/oscam start
/usr/bin/oscam: can't load library 'librt.so.0'
root@Gargoyle:~#

O co tutaj chodzi jak to naprawić

12

Odp: Libpthread reinstall?

Że nie masz librt? libpthread i librt to dwa różne pakiety. Ty zainstalowałeś tylko libpthread

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Libpthread reinstall?

Cezary napisał/a:

Że nie masz librt? libpthread i librt to dwa różne pakiety. Ty zainstalowałeś tylko libpthread

Faktycznie ,dzieki :)musze sie wybrac do okulisty