Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problemas com instalação do bacula

Portuguese
2010-05-19
2013-06-11
  • igor muzetti
    igor muzetti
    2010-05-19

    Olá pessoal, possuo o mysql instalado no meu suse 11.2 .
    Primeiro, descompactaei o arquivo bacula-5.0.1.tar.gz fazendo:

    # tar vfxz bacula-5.0.1.tar.gz

    Entrei na pasta:

    # cd /root/bacula-5.0.2

    E fiz os comandos:

    parrera:~/bacula-5.0.2 # ./configure -with-mysql

    E me retornou:

    checking for true… /bin/true                  
    checking for false… /bin/false                
    configuring for Bacula 5.0.2 (28 April 2010)    
    checking for gcc… gcc                         
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes            
    checking whether we are cross compiling… no           
    checking for suffix of executables…                   
    checking for suffix of object files… o                
    checking whether we are using the GNU C compiler… yes 
    checking whether gcc accepts -g… yes                  
    checking for gcc option to accept ISO C89… none needed
    checking for g++… g++                                 
    checking whether we are using the GNU C++ compiler… yes
    checking whether g++ accepts -g… yes                  
    checking whether gcc and cc understand -c and -o together… yes
    checking how to run the C preprocessor… gcc -E               
    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E                          
    checking whether gcc needs -traditional… no                   
    checking for g++… /usr/bin/g++                                
    checking for a BSD-compatible install… /usr/bin/install -c    
    checking for mv… /bin/mv                                      
    checking for rm… /bin/rm                                      
    checking for cp… /bin/cp                                      
    checking for sed… /usr/bin/sed                                
    checking for echo… /bin/echo                                  
    checking for cmp… /usr/bin/cmp                                
    checking for tbl… /usr/bin/tbl                                
    checking for ar… /usr/bin/ar                                  
    checking for openssl… /usr/bin/openssl                        
    checking for mtx… mtx                                         
    checking for dd… /bin/dd                                      
    checking for mkisofs… /usr/bin/mkisofs                        
    checking for python… /usr/bin/python                          
    checking for growisofs… /usr/bin/growisofs                    
    checking for dvd+rw-mediainfo… /usr/bin/dvd+rw-mediainfo      
    checking for dvd+rw-format… /usr/bin/dvd+rw-format            
    checking for pkg-config… /usr/bin/pkg-config                  
    checking for qmake… none                                      
    checking for gmake… /usr/bin/gmake                            
    checking for wx-config… wx-config                             
    checking for cdrecord… /usr/bin/cdrecord                      
    checking for pidof… /sbin/pidof                               
    checking for gawk… gawk                                       
    checking for gawk… /usr/bin/gawk                              
    checking build system type… x86_64-unknown-linux-gnu          
    checking host system type… x86_64-unknown-linux-gnu           
    checking for a sed that does not truncate output… (cached) /usr/bin/sed
    checking for fgrep… /usr/bin/grep -F                                  
    checking for ld used by gcc… /usr/x86_64-suse-linux/bin/ld            
    checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld… yes 
    checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B   
    checking the name lister (/usr/bin/nm -B) interface… BSD nm           
    checking whether ln -s works… yes                                     
    checking the maximum length of command line arguments… 1572864        
    checking whether the shell understands some XSI constructs… yes       
    checking whether the shell understands "+="… yes                      
    checking for /usr/x86_64-suse-linux/bin/ld option to reload object files… -r
    checking for objdump… objdump                                              
    checking how to recognize dependent libraries… pass_all                    
    checking for ar… /usr/bin/ar                                               
    checking for strip… strip                                                  
    checking for ranlib… ranlib                                                
    checking command to parse /usr/bin/nm -B output from gcc object… ok        
    checking for ANSI C header files… yes                                      
    checking for sys/types.h… yes                                              
    checking for sys/stat.h… yes                                               
    checking for stdlib.h… yes                                                 
    checking for string.h… yes                                                 
    checking for memory.h… yes                                                 
    checking for strings.h… yes                                                
    checking for inttypes.h… yes                                               
    checking for stdint.h… yes                                                 
    checking for unistd.h… yes                                                 
    checking for dlfcn.h… yes                                                  
    checking whether we are using the GNU C++ compiler… (cached) yes           
    checking whether /usr/bin/g++ accepts -g… (cached) yes                     
    checking how to run the C++ preprocessor… /usr/bin/g++ -E                  
    checking for objdir… .libs                                                 
    checking if gcc supports -fno-rtti -fno-exceptions… no                     
    checking for gcc option to produce PIC… -fPIC -DPIC                        
    checking if gcc PIC flag -fPIC -DPIC works… yes                            
    checking if gcc static flag -static works… yes                             
    checking if gcc supports -c -o file.o… yes                                 
    checking if gcc supports -c -o file.o… (cached) yes                        
    checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries… yes
    checking whether -lc should be explicitly linked in… no                                                    
    checking dynamic linker characteristics… GNU/Linux ld.so                                                   
    checking how to hardcode library paths into programs… immediate                                            
    checking whether stripping libraries is possible… yes                                                      
    checking if libtool supports shared libraries… yes                                                         
    checking whether to build shared libraries… yes                                                            
    checking whether to build static libraries… no                                                             
    checking for ld used by /usr/bin/g++… /usr/x86_64-suse-linux/bin/ld -m elf_x86_64                          
    checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld… yes                        
    checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries… yes                                                                                                                    
    checking for /usr/bin/g++ option to produce PIC… -fPIC -DPIC                                                       
    checking if /usr/bin/g++ PIC flag -fPIC -DPIC works… yes                                                           
    checking if /usr/bin/g++ static flag -static works… yes                                                            
    checking if /usr/bin/g++ supports -c -o file.o… yes                                                                
    checking if /usr/bin/g++ supports -c -o file.o… (cached) yes                                                       
    checking whether the /usr/bin/g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries… yes                                                                                                                    
    checking dynamic linker characteristics… GNU/Linux ld.so                                                           
    checking how to hardcode library paths into programs… immediate                                                    
    checking host system type… (cached) x86_64-unknown-linux-gnu                                                       
    checking for Operating System Distribution… done                                                                   
    checking whether make sets $(MAKE)… yes                                                                            
    checking whether NLS is requested… yes                                                                             
    checking for msgfmt… /usr/bin/msgfmt                                                                               
    checking for gmsgfmt… /usr/bin/msgfmt                                                                              
    checking for xgettext… no                                                                                          
    checking for msgmerge… no                                                                                          
    checking for ld used by GCC… /usr/x86_64-suse-linux/bin/ld -m elf_x86_64                                           
    checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld… yes                                
    checking for shared library run path origin… done                                                                  
    checking for CFPreferencesCopyAppValue… no                                                                         
    checking for CFLocaleCopyCurrent… no                                                                               
    checking whether NLS is requested… yes                                                                             
    checking for GNU gettext in libc… yes                                                                              
    checking whether to use NLS… yes                                                                                   
    checking where the gettext function comes from… libc                                                               
    checking for msgfmt… (cached) /usr/bin/msgfmt                                                                      
    checking termcap.h usability… no                                                                                   
    checking termcap.h presence… no                                                                                    
    checking for termcap.h… no                                                                                         
    checking curses.h usability… no                                                                                    
    checking curses.h presence… no                                                                                     
    checking for curses.h… no                                                                                          
    checking term.h usability… no
    checking term.h presence… no
    checking for term.h… no

    Required libraries not found. CONIO turned off …
    ],
    checking whether stat file-mode macros are broken… no
    checking for dirent.h that defines DIR… yes
    checking for library containing opendir… none required
    checking for strcasecmp… yes
    checking for select… yes
    checking for setenv… yes
    checking for putenv… yes
    checking for tcgetattr… yes
    checking for lstat… yes
    checking for lchown… yes
    checking for nanosleep… yes
    checking for nl_langinfo… yes
    checking varargs.h usability… no
    checking varargs.h presence… no
    checking for varargs.h… no
    checking for Python support… no
    checking for socket… yes
    using libc's socket
    checking for OpenSSL… no
    checking for library containing dlopen… -ldl
    checking for PostgreSQL support… no
    checking for MySQL support… no
    configure: error: Unable to find mysql.h in standard locations

    Depois fiz:

    parrera:~/bacula-5.0.2 # make       

    E obtive como resposta:

                                                                                    
    ==>Entering directory /root/bacula-5.0.2/src                                                                         
    make: Entering directory `/root/bacula-5.0.2/src'                                                                 
    make: Nothing to be done for `all'.                                                                               
    make: Leaving directory `/root/bacula-5.0.2/src'                                                                  
    ==>Entering directory /root/bacula-5.0.2/scripts                                                                     
    make: Entering directory `/root/bacula-5.0.2/scripts'                                                             
    make: Nothing to be done for `all'.                                                                               
    make: Leaving directory `/root/bacula-5.0.2/scripts'                                                              
    ==>Entering directory /root/bacula-5.0.2/src/lib                                                                     
    make: Entering directory `/root/bacula-5.0.2/src/lib'                                                             
    ==== Make of lib is good ====                                                                                        
                                                                                                                         
    make: Leaving directory `/root/bacula-5.0.2/src/lib'                                                              
    ==>Entering directory /root/bacula-5.0.2/src/findlib                                                                 
    make: Entering directory `/root/bacula-5.0.2/src/findlib'                                                         
    ==== Make of findlib is good ====                                                                                    
                                                                                                                         
    make: Leaving directory `/root/bacula-5.0.2/src/findlib'                                                          
    ==>Entering directory /root/bacula-5.0.2/src/filed                                                                   
    make: Entering directory `/root/bacula-5.0.2/src/filed'                                                           
    ==== Make of filed is good ====                                                                                      
                                                                                                                         
    make: Leaving directory `/root/bacula-5.0.2/src/filed'                                                            
    ==>Entering directory /root/bacula-5.0.2/src/console                                                                 
    make: Entering directory `/root/bacula-5.0.2/src/console'                                                         
    ==== Make of console is good ====                                                                                    
                                                                                                                         
    make: Leaving directory `/root/bacula-5.0.2/src/console'                                                          
    ==>Entering directory /root/bacula-5.0.2/src/plugins/fd                                                              
    make: Entering directory `/root/bacula-5.0.2/src/plugins/fd'                                                      
    make: Nothing to be done for `all'.                                                                               
    make: Leaving directory `/root/bacula-5.0.2/src/plugins/fd'                                                       
    ==>Entering directory /root/bacula-5.0.2/src/cats                                                                    
    make: Entering directory `/root/bacula-5.0.2/src/cats'                                                            
    Compiling bvfs.c                                                                                                     
    bvfs.c: In function ‘void build_path_hierarchy(JCR*, B_DB*, pathid_cache&, char*, char*)’:                           
    bvfs.c:202: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c:220: error: ‘sql_num_rows’ was not declared in this scope                                                     
    bvfs.c:229: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c:230: error: ‘struct B_DB’ has no member named ‘pnl’                                                           
    bvfs.c:230: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c:244: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c:255: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c:256: error: ‘struct B_DB’ has no member named ‘fnl’                                                           
    bvfs.c: In function ‘void update_path_hierarchy_cache(JCR*, B_DB*, pathid_cache&, JobId_t)’:                         
    bvfs.c:278: error: ‘sql_num_rows’ was not declared in this scope                                                     
    bvfs.c:310: error: ‘sql_num_rows’ was not declared in this scope                                                     
    bvfs.c:314: error: ‘SQL_ROW’ was not declared in this scope                                                          
    bvfs.c:314: error: expected ‘;’ before ‘row’                                                                         
    bvfs.c:316: error: ‘row’ was not declared in this scope                                                              
    bvfs.c:316: error: ‘sql_fetch_row’ was not declared in this scope                                                    
    bvfs.c:346: error: ‘sql_affected_rows’ was not declared in this scope                                                
    bvfs.c: In member function ‘bool Bvfs::ch_dir(const char*)’:                                                         
    bvfs.c:477: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c:478: error: ‘struct B_DB’ has no member named ‘pnl’                                                           
    bvfs.c:478: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c: In member function ‘DBId_t Bvfs::get_root()’:                                                                
    bvfs.c:523: error: ‘struct B_DB’ has no member named ‘path’                                                          
    bvfs.c: In member function ‘bool Bvfs::ls_dirs()’:                                                                   
    bvfs.c:598: error: ‘SQL_MATCH’ was not declared in this scope                                                        
    bvfs.c:653: error: ‘struct B_DB’ has no member named ‘num_rows’                                                      
    bvfs.c: In member function ‘bool Bvfs::ls_files()’:                                                                  
    bvfs.c:674: error: ‘SQL_MATCH’ was not declared in this scope                                                        
    bvfs.c:702: error: ‘struct B_DB’ has no member named ‘num_rows’                                                      
    make: ***  Error 1                                                                                       
    make: Leaving directory `/root/bacula-5.0.2/src/cats'                                                             

      ====== Error in /root/bacula-5.0.2/src/cats ======

    ==>Entering directory /root/bacula-5.0.2/src/dird
    make: Entering directory `/root/bacula-5.0.2/src/dird'
    make: *** No rule to make target `../cats/libbacsql.la', needed by `bacula-dir'.  Stop.
    make: Leaving directory `/root/bacula-5.0.2/src/dird'

      ====== Error in /root/bacula-5.0.2/src/dird ======

    ==>Entering directory /root/bacula-5.0.2/src/stored
    make: Entering directory `/root/bacula-5.0.2/src/stored'
    make: *** No rule to make target `../cats/libbacsql.la', needed by `bscan'.  Stop.
    make: Leaving directory `/root/bacula-5.0.2/src/stored'

      ====== Error in /root/bacula-5.0.2/src/stored ======

    ==>Entering directory /root/bacula-5.0.2/src/tools
    make: Entering directory `/root/bacula-5.0.2/src/tools'
    make: *** No rule to make target `../cats/libbacsql.la', needed by `dbcheck'.  Stop.
    make: Leaving directory `/root/bacula-5.0.2/src/tools'

      ====== Error in /root/bacula-5.0.2/src/tools ======

    ==>Entering directory /root/bacula-5.0.2/manpages
    make: Entering directory `/root/bacula-5.0.2/manpages'
    make: Nothing to be done for `all'.
    make: Leaving directory `/root/bacula-5.0.2/manpages'

    Finalmente, usei o comando:

    parrera:~/bacula-5.0.2 # make install

    E retornou:! -d /var/bacula/working ; then \ \ \ != "x" ; then \ \ != "x" ; then \ \ `/root/bacula-5.0.2/src'`install'.`/root/bacula-5.0.2/src'`/root/bacula-5.0.2/scripts'_config /etc/bacula/bacula_config`bacula_config': No such file or directory***`/root/bacula-5.0.2/scripts'`/root/bacula-5.0.2/src/lib'`/root/bacula-5.0.2/src/lib'`/root/bacula-5.0.2/src/findlib'`/root/bacula-5.0.2/src/findlib'`/root/bacula-5.0.2/src/filed'`/root/bacula-5.0.2/src/filed'`/root/bacula-5.0.2/src/console'\ \ `/root/bacula-5.0.2/src/console'`/root/bacula-5.0.2/src/plugins/fd'`/root/bacula-5.0.2/src/plugins/fd'`/root/bacula-5.0.2/src/cats'_path_hierarchy(JCR*, B_DB*, pathid_cache*, char*)’:_DB’ has no member named ‘path’_num_rows’ was not declared in this scope_DB’ has no member named ‘path’_DB’ has no member named ‘pnl’_DB’ has no member named ‘path’_DB’ has no member named ‘path’_DB’ has no member named ‘path’_DB’ has no member named ‘fnl’_path_hierarchy_cache(JCR*, B_DB*, pathid_cache_t)’:_num_rows’ was not declared in this scope_num_rows’ was not declared in this scope_ROW’ was not declared in this scope_fetch_row’ was not declared in this scope_affected_rows’ was not declared in this scope_dir(const char*)’:_DB’ has no member named ‘path’_DB’ has no member named ‘pnl’_DB’ has no member named ‘path’_t Bvfs::get_root()’:_DB’ has no member named ‘path’_dirs()’:_MATCH’ was not declared in this scope_DB’ has no member named ‘num_rows’_files()’:_MATCH’ was not declared in this scope_DB’ has no member named ‘num_rows’***`/root/bacula-5.0.2/src/cats'`/root/bacula-5.0.2/src/dird'*** No rule to make target `../cats/libbacsql.la', needed by `bacula-dir'.`/root/bacula-5.0.2/src/dird'klzzwxh:10132make: Entering directory klzzwxh:10000/root/bacula-5.0.2/src/stored'klzzwxh:10133make: klzzwxh:10001klzzwxh:10002klzzwxh:10003 No rule to make target klzzwxh:10004../cats/libbacsql.la', needed by klzzwxh:10005bscan'.klzzwxh:14681 Stop.klzzwxh:10134make: Leaving directory klzzwxh:10006/root/bacula-5.0.2/src/stored'klzzwxh:10135make: Entering directory klzzwxh:10007/root/bacula-5.0.2/src/tools'klzzwxh:10136make: klzzwxh:10008klzzwxh:10009klzzwxh:10010 No rule to make target klzzwxh:10011../cats/libbacsql.la', needed by klzzwxh:10012dbcheck'.klzzwxh:14682 Stop.klzzwxh:10137make: Leaving directory klzzwxh:10013/root/bacula-5.0.2/src/tools'klzzwxh:10138make: Entering directory klzzwxh:10014/root/bacula-5.0.2/manpages'klzzwxh:10139/root/bacula-5.0.2/autoconf/mkinstalldirs //usr/share/man/man8klzzwxh:10140for I in bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8 bconsole.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8; klzzwxh:10015 klzzwxh:14766klzzwxh:14683klzzwxh:14684klzzwxh:14685klzzwxh:14686klzzwxh:14687klzzwxh:14688klzzwxh:14689klzzwxh:14690klzzwxh:14691 do klzzwxh:10016/bin/rm -f $I.gz; gzip -c $I klzzwxh:14692$I.gz; klzzwxh:10017 klzzwxh:14767klzzwxh:14693klzzwxh:14694klzzwxh:14695klzzwxh:14696klzzwxh:14697klzzwxh:14698klzzwxh:14699klzzwxh:14700klzzwxh:14701klzzwxh:14702klzzwxh:14703klzzwxh:14704 /usr/bin/install -c -m 644 $I.gz /usr/share/man/man8/$I.gz; klzzwxh:10018 klzzwxh:14768klzzwxh:14705klzzwxh:14706klzzwxh:14707klzzwxh:14708klzzwxh:14709klzzwxh:14710klzzwxh:14711klzzwxh:14712klzzwxh:14713klzzwxh:14714klzzwxh:14715klzzwxh:14716 rm -f $I.gzklzzwxh:10019; klzzwxh:10020 klzzwxh:14769klzzwxh:14717klzzwxh:14718klzzwxh:14719klzzwxh:14720klzzwxh:14721klzzwxh:14722klzzwxh:14723 doneklzzwxh:10141/root/bacula-5.0.2/autoconf/mkinstalldirs //usr/share/man/man1klzzwxh:10142for I in bacula-tray-monitor.1 bacula-bwxconsole.1 bsmtp.1 bat.1; klzzwxh:10021 klzzwxh:14770klzzwxh:14724klzzwxh:14725klzzwxh:14726klzzwxh:14727klzzwxh:14728klzzwxh:14729klzzwxh:14730klzzwxh:14731klzzwxh:14732 do klzzwxh:10022/bin/rm -f $I.gz; gzip -c $I klzzwxh:14733$I.gz; klzzwxh:10023 klzzwxh:14771klzzwxh:14734klzzwxh:14735klzzwxh:14736klzzwxh:14737klzzwxh:14738klzzwxh:14739klzzwxh:14740klzzwxh:14741klzzwxh:14742klzzwxh:14743klzzwxh:14744klzzwxh:14745 /usr/bin/install -c -m 644 $I.gz /usr/share/man/man1/$I.gz; klzzwxh:10024 klzzwxh:14772klzzwxh:14746klzzwxh:14747klzzwxh:14748klzzwxh:14749klzzwxh:14750klzzwxh:14751klzzwxh:14752klzzwxh:14753klzzwxh:14754klzzwxh:14755klzzwxh:14756klzzwxh:14757 rm -f $I.gzklzzwxh:10025; klzzwxh:10026 klzzwxh:14773klzzwxh:14758klzzwxh:14759klzzwxh:14760klzzwxh:14761klzzwxh:14762klzzwxh:14763klzzwxh:14764 doneklzzwxh:10143make: Leaving directory klzzwxh:10027/root/bacula-5.0.2/manpages'klzzwxh:10028

    Agora não sei o que pode estar dando errado, alguém poderia me ajudar?klzzwxh:14778Já postei essa dúvida neste seguinte fórum e fiz alguns passos, mas ainda não adiantouklzzwxh:14774meus posts estão nos comentários no final do artigoklzzwxh:14775:klzzwxh:14779klzzwxh:14776klzzwxh:14777

    Espero que alguém possa me ajudar neste caso, pois quero começar a usar o bacula o quanto antes e sei da importância dessa ferramenta.klzzwxh:14782Obrigadoklzzwxh:14780klzzwxh:14781

     
  • igor muzetti
    igor muzetti
    2010-05-19

    Errata: para descompactar fiz:

    # tar vfxz bacula-5.0.2.tar.gz

    Coloquei a versão 5.0.2 não a 1 como disse no começo.

     
  • igor muzetti
    igor muzetti
    2010-05-19

    E os arquivos criados em /etc/bacula são:

    *bacula-fd.conf
    *bconsole.conf
    *script bacula
    *script bconsole
    *startmysql
    *stopmysql
    * e um bacula~

    Só isso.

     
  • Victor Lima
    Victor Lima
    2010-07-29

    Cara o erro esta dando primeiro no ./configure.

    Antes de dar o make e make install você tem que ter certeza que o ./configure funcionou direito.

    seu erro:

     checking for MySQL support... no
    configure: error: Unable to find mysql.h in standard locations
    

    o bacula tentou procurar o MySQL nos locais onde sua instalação é padrão, mas não encontrou.
    tente fazer o dessa forma

    ./configure --with-mysql=/local/onde/esta/seu/mysql
    

    Abraços