IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

SGBD Perl Discussion :

Probleme d'installation DBD::ODBC


Sujet :

SGBD Perl

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 11
    Points : 13
    Points
    13
    Par défaut Probleme d'installation DBD::ODBC
    Bonjour,

    Je voudrais à partir d'une RH ES4 acceder un une base de données SQL-SERVER. J'ai vu qu'il falait installer le module DBD::ODBC. Mais je n'y arrive pas. Il doit manquer un parametre, mais je ne sais pas quoi mettre ni comment.

    Si quelqu'un a une idee.

    Merci

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
     
    cpan> install DBD::ODBC
    CPAN: Storable loaded ok
    Going to read /root/.cpan/Metadata
      Database was generated on Mon, 31 Oct 2005 02:01:04 GMT
    Running install for module DBD::ODBC
    Running make for J/JU/JURL/DBD-ODBC-1.13.tar.gz
    CPAN: Digest::MD5 loaded ok
    Checksum for /root/.cpan/sources/authors/id/J/JU/JURL/DBD-ODBC-1.13.tar.gz ok
    Scanning cache /root/.cpan/build for sizes
    DBD-ODBC-1.13/
    DBD-ODBC-1.13/Changes
    DBD-ODBC-1.13/dbdimp.c
    DBD-ODBC-1.13/dbdimp.h
    DBD-ODBC-1.13/dbivport.h
    DBD-ODBC-1.13/fixup_c.h
    DBD-ODBC-1.13/fixup_t.h
    DBD-ODBC-1.13/Makefile.PL
    DBD-ODBC-1.13/MANIFEST
    DBD-ODBC-1.13/MANIFEST.SKIP
    DBD-ODBC-1.13/META.yml
    DBD-ODBC-1.13/mytest/
    DBD-ODBC-1.13/mytest/coltest.pl
    DBD-ODBC-1.13/mytest/contest.pl
    DBD-ODBC-1.13/mytest/joetest.pl
    DBD-ODBC-1.13/mytest/joetest2.pl
    DBD-ODBC-1.13/mytest/joetest4.pl
    DBD-ODBC-1.13/mytest/joetest5.pl
    DBD-ODBC-1.13/mytest/joetest6.pl
    DBD-ODBC-1.13/mytest/joetest7.pl
    DBD-ODBC-1.13/mytest/leakcheck.pl
    DBD-ODBC-1.13/mytest/listtabs.pl
    DBD-ODBC-1.13/mytest/longbin.pl
    DBD-ODBC-1.13/mytest/moreresults.pl
    DBD-ODBC-1.13/mytest/proctest1.pl
    DBD-ODBC-1.13/mytest/proctest2.pl
    DBD-ODBC-1.13/mytest/proctest3.pl
    DBD-ODBC-1.13/mytest/randombind.pl
    DBD-ODBC-1.13/mytest/sqltmptabs.pl
    DBD-ODBC-1.13/mytest/testconn.pl
    DBD-ODBC-1.13/mytest/testconnspeed.pl
    DBD-ODBC-1.13/mytest/testdatasources.pl
    DBD-ODBC-1.13/mytest/testdestruction.pl
    DBD-ODBC-1.13/mytest/testerrhandler.pl
    DBD-ODBC-1.13/mytest/testfunc.pl
    DBD-ODBC-1.13/mytest/testgetinfo.pl
    DBD-ODBC-1.13/mytest/testigparams.pl
    DBD-ODBC-1.13/mytest/testinout.pl
    DBD-ODBC-1.13/mytest/testkeys.pl
    DBD-ODBC-1.13/mytest/testmulti.pl
    DBD-ODBC-1.13/mytest/testproc.pl
    DBD-ODBC-1.13/mytest/testproc2.pl
    DBD-ODBC-1.13/mytest/testproc3.pl
    DBD-ODBC-1.13/mytest/testspmulti.pl
    DBD-ODBC-1.13/mytest/testundef.pl
    DBD-ODBC-1.13/mytest/testundef2.pl
    DBD-ODBC-1.13/mytest/testundef3.pl
    DBD-ODBC-1.13/mytest/testver.pl
    DBD-ODBC-1.13/mytest/testxml.pl
    DBD-ODBC-1.13/mytest/timetest.pl
    DBD-ODBC-1.13/ODBC.h
    DBD-ODBC-1.13/ODBC.pm
    DBD-ODBC-1.13/ODBC.xs
    DBD-ODBC-1.13/README
    DBD-ODBC-1.13/README.adabas
    DBD-ODBC-1.13/README.hpux
    DBD-ODBC-1.13/README.informix
    DBD-ODBC-1.13/README.RH9
    DBD-ODBC-1.13/t/
    DBD-ODBC-1.13/t/01base.t
    DBD-ODBC-1.13/t/02simple.t
    DBD-ODBC-1.13/t/03dbatt.t
    DBD-ODBC-1.13/t/05meth.t
    DBD-ODBC-1.13/t/07bind.t
    DBD-ODBC-1.13/t/08bind2.t
    DBD-ODBC-1.13/t/09multi.t
    DBD-ODBC-1.13/t/20SqlServer.t
    DBD-ODBC-1.13/t/30Oracle.t
    DBD-ODBC-1.13/t/ODBCTEST.pm
    Removing previously used /root/.cpan/build/DBD-ODBC-1.13
     
      CPAN.pm: Going to build J/JU/JURL/DBD-ODBC-1.13.tar.gz
     
    Useless use of private variable in void context at Makefile.PL line 431.
     
    Configuring DBD::ODBC ...
     
    >>>     Remember to actually *READ* the README file!
            And re-read it if you have any problems.
     
    Using DBI 1.40 (for perl 5.008005 on i386-linux-thread-multi) installed in /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBI
     
    The DBD::ODBC module needs to link with an ODBC 'Driver Manager'.
    (The Driver Manager, in turn, needs one or more database specific ODBC drivers.
    The DBD::ODBC module does _not_ include any ODBC drivers!)
     
    You need to indicate where your ODBC Driver Manager is installed.
    You can do this ether by setting the ODBCHOME environment variable
    or by runing 'perl Makefile.PL -o odbcdir'.
     
    If you do not have an ODBC Driver Manager you can try building
    the free iODBC Driver Manager in the iodbcsrc directory.
     
    Makefile.PL aborted.
    Running make test
      Make had some problems, maybe interrupted? Won't test
    Running make install
      Make had some problems, maybe interrupted? Won't install
     
    cpan>

  2. #2
    Expert éminent
    Avatar de Jedai
    Homme Profil pro
    Enseignant
    Inscrit en
    Avril 2003
    Messages
    6 245
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Côte d'Or (Bourgogne)

    Informations professionnelles :
    Activité : Enseignant

    Informations forums :
    Inscription : Avril 2003
    Messages : 6 245
    Points : 8 586
    Points
    8 586
    Par défaut
    Il faut avoir installé un driver ODBC sur ton Linux auparavant, si tu lis la trace d'erreur, il te suggère même lequel installer.

    --
    Jedaï

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 11
    Points : 13
    Points
    13
    Par défaut
    Effectivement, c'est aller un peu plus loin. Maintenant, j'ai une erreur

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    >perl -e 'use DBD::ODBC;'
    Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/ODBC/ODBC.so' for module DBD::ODBC: libiodbc.so.2: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou répertoire de ce type at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
     at -e line 1
    Compilation failed in require at -e line 1.
    BEGIN failed--compilation aborted at -e line 1.
    ------------------------------------
    edit
    C'est bon j'ai trouvé, le fichier etait dans /usr/local/lib au lieu de /usr/lib

    Merci Jedai

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Probleme d'installation odbc oracle
    Par vinatia dans le forum Connexions aux bases de données
    Réponses: 0
    Dernier message: 14/12/2011, 09h23
  2. probleme installation DBD::mysql
    Par snufx dans le forum Modules
    Réponses: 4
    Dernier message: 10/01/2008, 08h11
  3. DBD::Pg probleme d'install sour linux
    Par larmande dans le forum Modules
    Réponses: 1
    Dernier message: 31/07/2007, 15h15
  4. probleme pour installer le module DBD::Sybase
    Par black_code dans le forum SGBD
    Réponses: 9
    Dernier message: 25/07/2005, 15h06
  5. Réponses: 12
    Dernier message: 23/10/2002, 11h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo