Problem with Installing Perl Module in Fedora 20

Hi,
I have downloaded Audio::Beep. I tried to install it through CPAN but i got YAML error. Then I have tried to install it manually. I tried all the instructions provided in README file. It worked but when i am compiling , it still gives me error:

[root@localhost lab6]# ls
acct21.pl~              imap(2).pl    LinuxForumDec10.odt  server.pl~
acct2.pl~               imap2.pl      Proxy.pl             waqc.pl~
Audio-Beep-0.11.tar.gz  imap.pl       proxyserver.pl~      waqs.pl~
client.pl~              ismailc.pl~   Public               Zulfi
Client.pl               ismails2.pl~  Server1.pl
Desktop                 ismails.pl~   server2.pl~
Documents               lab11         Server2.pl
[root@localhost lab6]# tar xvfz Audio-Beep-0.11.tar.gz
Audio-Beep-0.11/
Audio-Beep-0.11/t/
Audio-Beep-0.11/t/1.t
Audio-Beep-0.11/beep-1.2.2/
Audio-Beep-0.11/beep-1.2.2/COPYING
Audio-Beep-0.11/beep-1.2.2/README
Audio-Beep-0.11/beep-1.2.2/INSTALL
Audio-Beep-0.11/beep-1.2.2/CREDITS
Audio-Beep-0.11/beep-1.2.2/CHANGELOG
Audio-Beep-0.11/beep-1.2.2/Makefile
Audio-Beep-0.11/beep-1.2.2/beep.c
Audio-Beep-0.11/beep-1.2.2/beep.1.gz
Audio-Beep-0.11/lib/
Audio-Beep-0.11/lib/Audio/
Audio-Beep-0.11/lib/Audio/Beep/
Audio-Beep-0.11/lib/Audio/Beep/Win32/
Audio-Beep-0.11/lib/Audio/Beep/Win32/API.pm
Audio-Beep-0.11/lib/Audio/Beep/Linux/
Audio-Beep-0.11/lib/Audio/Beep/Linux/PP.pm
Audio-Beep-0.11/lib/Audio/Beep/Linux/beep.pm
Audio-Beep-0.11/lib/Audio/Beep/BSD/
Audio-Beep-0.11/lib/Audio/Beep/BSD/beep.pm
Audio-Beep-0.11/META.yml
Audio-Beep-0.11/Beep.pm
Audio-Beep-0.11/music/
Audio-Beep-0.11/music/wtk1
Audio-Beep-0.11/music/scales
Audio-Beep-0.11/music/pictures_at_an_exhibition
Audio-Beep-0.11/music/today
Audio-Beep-0.11/music/love_will_tear_us_apart
Audio-Beep-0.11/music/beep_player.pl
Audio-Beep-0.11/README
Audio-Beep-0.11/pods/
Audio-Beep-0.11/pods/jp/
Audio-Beep-0.11/pods/jp/Beep.pod
Audio-Beep-0.11/Beep.pod
Audio-Beep-0.11/MANIFEST
Audio-Beep-0.11/Makefile.PL
Audio-Beep-0.11/Changes
[root@localhost lab6]# ls
acct21.pl~              Desktop      ismails2.pl~         Public       waqs.pl~
acct2.pl~               Documents    ismails.pl~          Server1.pl   Zulfi
Audio-Beep-0.11         imap(2).pl   lab11                server2.pl~
Audio-Beep-0.11.tar.gz  imap2.pl     LinuxForumDec10.odt  Server2.pl
client.pl~              imap.pl      Proxy.pl             server.pl~
Client.pl               ismailc.pl~  proxyserver.pl~      waqc.pl~
[root@localhost lab6]# cd Audio-Beep-0.11
[root@localhost Audio-Beep-0.11]# ls
beep-1.2.2  Beep.pod  lib          MANIFEST  music  README
Beep.pm     Changes   Makefile.PL  META.yml  pods   t
[root@localhost Audio-Beep-0.11]# vi README
[root@localhost Audio-Beep-0.11]# perl Makefile.PL
Would you like to install Japanese documentation? 
If you enter 'y' then i will try to install Japanese docs alongside 
English ones. On platforms using 'man' manpages (typically on UN*X)
Japanese documentation will be available transparently to users whose 
locale language is set to Japanese.
On other platforms the documentation will be available as Audio::Beep_jp
Default is to not install Japanese docs. [N/y]  N
Checking if your kit is complete...
Looks good
Writing Makefile for Audio::Beep
[root@localhost Audio-Beep-0.11]# make
cp Beep.pod blib/lib/Audio/Beep.pod
cp lib/Audio/Beep/Linux/beep.pm blib/lib/Audio/Beep/Linux/beep.pm
cp lib/Audio/Beep/Linux/PP.pm blib/lib/Audio/Beep/Linux/PP.pm
cp Beep.pm blib/lib/Audio/Beep.pm
Manifying blib/man3/Audio::Beep::Linux::beep.3pm
Manifying blib/man3/Audio::Beep::Linux::PP.3pm
Manifying blib/man3/Audio::Beep.3pm
[root@localhost Audio-Beep-0.11]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1.t .. ok   
All tests successful.
Files=1, Tests=3,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.02 cusr  0.00 csys =  0.05 CPU)
Result: PASS
[root@localhost Audio-Beep-0.11]# make install
Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
[root@localhost Audio-Beep-0.11]# pwd
/home/lab6/Audio-Beep-0.11
[root@localhost Audio-Beep-0.11]# ls
beep-1.2.2  Beep.pod  Changes  Makefile     MANIFEST  music       pods    t
Beep.pm     blib      lib      Makefile.PL  META.yml  pm_to_blib  README
[root@localhost Audio-Beep-0.11]# cd ..
[root@localhost lab6]# ls
acct21.pl~              Desktop      ismails2.pl~         Public       waqs.pl~
acct2.pl~               Documents    ismails.pl~          Server1.pl   Zulfi
Audio-Beep-0.11         imap(2).pl   lab11                server2.pl~
Audio-Beep-0.11.tar.gz  imap2.pl     LinuxForumDec10.odt  Server2.pl
client.pl~              imap.pl      Proxy.pl             server.pl~
Client.pl               ismailc.pl~  proxyserver.pl~      waqc.pl~
[root@localhost lab6]# cd Zulfi
[root@localhost Zulfi]# ls
imap01.pl  imap2.pl  imap.pl
[root@localhost Zulfi]# perl imap01.pl
Can't locate Audio/Beep.pm in @INC (you may need to install the Audio::Beep module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at imap01.pl line 2.
BEGIN failed--compilation aborted at imap01.pl line 2.

The code is:


[root@localhost Zulfi]# cat imap01.pl
#!/usr/bin/perl.exe
use Audio::Beep;
use strict;
use warnings;
use Mail::IMAPClient;
use IO::Socket::SSL;
#se Audio::Beep;

Somebody please guide me with this problem.

Zulfi.

What is the value of @INC (from the tail end of perl -V )? And does it include the directory where Audio::Beep was installed?

Hi,

I am not able to understand what you mean by trail end of perl: I am showing you some output of some commands. This would help you to understand your problem.

[root@localhost Zulfi]# perl -V
Summary of my perl5 (revision 5 version 18 subversion 4) configuration:
   
  Platform:
    osname=linux, osvers=3.15.6-200.fc20.x86_64, archname=x86_64-linux-thread-multi
    uname='linux buildvm-19.phx2.fedoraproject.org 3.15.6-200.fc20.x86_64 #1 smp fri jul 18 02:36:27 utc 2014 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -Dccdlflags=-Wl,--enable-new-dtags -Dlddlflags=-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -Wl,-z,relro  -Dshrpdir=/usr/lib64 -DDEBUGGING=-g -Dversion=5.18.4 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Darchlib=/usr/lib64/perl5 -Dvendorarch=/usr/lib64/perl5/vendor_perl -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Dusedtrace=/usr/bin/dtrace -Duselargefiles -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dscriptdir=/usr/bin -Dusesitecustomize'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.3 20140911 (Red Hat 4.8.3-7)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -fstack-protector'
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.18'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,--enable-new-dtags'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro '


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API USE_SITECUSTOMIZE
  Locally applied patches:
    Fedora Patch1: Removes date check, Fedora/RHEL specific
    Fedora Patch3: support for libdir64
    Fedora Patch4: use libresolv instead of libbind
    Fedora Patch5: USE_MM_LD_RUN_PATH
    Fedora Patch6: Skip hostname tests, due to builders not being network capable
    Fedora Patch7: Dont run one io test due to random builder failures
    Fedora Patch9: Fix find2perl to translate ? glob properly (RT#113054)
    Fedora Patch10: Update h2ph(1) documentation (RT#117647)
    Fedora Patch11: Update pod2html(1) documentation (RT#117623)
    Fedora Patch12: Disable ornaments on perl5db AutoTrace tests (RT#118817)
    Fedora Patch14: Do not use system Term::ReadLine::Gnu in tests (RT#118821)
    Fedora Patch15: Define SONAME for libperl.so
    Fedora Patch16: Install libperl.so to -Dshrpdir value
    Fedora Patch18: Fix crash with \&$glob_copy (RT#119051)
    Fedora Patch19: Fix coreamp.t rand test (RT#118237)
    Fedora Patch20: Reap child in case where exception has been thrown (RT#114722)
    Fedora Patch21: Fix using regular expressions containing multiple code blocks (RT#117917)
    Fedora Patch200: Link XS modules to libperl.so with EU::CBuilder on Linux
    Fedora Patch201: Link XS modules to libperl.so with EU::MM on Linux
  Built under linux
  Compiled at Oct  3 2014 12:05:47
  %ENV:
    PERL_MB_OPT="--install_base "/root/perl5""
    PERL_MM_OPT="INSTALL_BASE=/root/perl5"
  @INC:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
    .


and output of locate is:

 
[root@localhost Zulfi]# locate perl
/etc/rpm/macros.perl
/root/perl5
/root/.cpan/build/Archive-Zip-1.39-oOz_E4/t/data/perl.zip
/root/.cpan/build/CPAN-2.05-Bc53sF/distroprefs/ATOURBIN.rpm-build-perl.yml
/root/.cpan/build/CPAN-2.05-Bc53sF/distroprefs/BIRNEY.bioperl.yml
/root/.cpan/build/CPAN-2.05-Bc53sF/distroprefs/GBARR.perl-ldap.yml
/root/.cpan/build/CPAN-2.05-Bc53sF/distroprefs/GOZER.mod_perl.yml
/root/.cpan/build/CPAN-2.05-Bc53sF/distroprefs/GRICHTER.Embperl.yml
/root/.cpan/build/CPAN-2.05-Bc53sF/t/perlcriticrc
/root/.cpan/build/CPAN-Meta-2.143240-JfR7NM/perlcritic.rc
/root/.cpan/build/CPAN-Meta-Requirements-2.130-jnZUxL/perlcritic.rc
/root/.cpan/build/CPAN-Meta-YAML-0.012-dctbUU/t/tml-local/perl-to-yaml
/root/.cpan/build/CPAN-Meta-YAML-0.012-dctbUU/t/tml-local/perl-to-yaml/quoting.tml
/root/.cpan/build/Data-Dumper-2.154-EROj3G/t/dumpperl.t
/root/.cpan/build/Data-Dumper-2.154-EROj3G/t/freezer_useperl.t
/root/.cpan/build/Data-Dumper-2.154-EROj3G/t/perl-74170.t
/root/.cpan/build/ExtUtils-MakeMaker-7.02-WDINtP/.perlcriticrc
/root/.cpan/build/ExtUtils-MakeMaker-7.02-WDINtP/t/01perl_bugs.t
/root/.cpan/build/ExtUtils-MakeMaker-7.02-WDINtP/t/min_perl_version.t
/root/.cpan/build/ExtUtils-MakeMaker-7.02-WDINtP/t/miniperl.t
/root/.cpan/build/ExtUtils-MakeMaker-7.04-EpvfRk/.perlcriticrc
/root/.cpan/build/ExtUtils-MakeMaker-7.04-EpvfRk/t/01perl_bugs.t
/root/.cpan/build/ExtUtils-MakeMaker-7.04-EpvfRk/t/min_perl_version.t
/root/.cpan/build/ExtUtils-MakeMaker-7.04-EpvfRk/t/miniperl.t
/root/.cpan/build/Module-Build-0.4210-JBZNKO/t/perl_mb_opt.t
/root/.cpan/build/Net-IMAP-Simple-1.2205-0NSSIN/.perlcriticrc
/root/.cpan/build/Parse-CPAN-Meta-1.4414-YrUxs2/perlcritic.rc
/root/.cpan/build/Perl-OSType-1.007-BwGBig/perlcritic.rc
/root/.cpan/build/Test-Base-0.88-Y0w_yY/t/embed_perl.t
/root/.cpan/build/Test-Harness-3.34-OpQFFH/perlcriticrc
/root/.cpan/build/Test-Harness-3.34-OpQFFH/t/perl5lib.t
/root/.cpan/build/Test-Harness-3.34-OpQFFH/t/subclass_tests/non_perl_source
/root/.cpan/build/Test-Harness-3.34-OpQFFH/t/subclass_tests/perl_source
/root/.cpan/build/Test-Harness-3.34-OpQFFH/xt/perls
/root/.cpan/build/Test-Harness-3.34-OpQFFH/xt/perls/harness_perl.t


...............Deleted too lengthy


/usr/share/doc/perl-HTML-Tagset/Changes
/usr/share/doc/perl-HTML-Tagset/README
/usr/share/doc/perl-HTTP-Cookies/Changes
/usr/share/doc/perl-HTTP-Cookies/README
/usr/share/doc/perl-HTTP-Daemon/Changes
/usr/share/doc/perl-HTTP-Daemon/README
/usr/share/doc/perl-HTTP-Date/Changes
/usr/share/doc/perl-HTTP-Date/README
/usr/share/doc/perl-HTTP-Message/Changes
/usr/share/doc/perl-HTTP-Message/README
/usr/share/doc/perl-HTTP-Negotiate/Changes
/usr/share/doc/perl-HTTP-Negotiate/README
/usr/share/doc/perl-HTTP-Tiny/CONTRIBUTING
/usr/share/doc/perl-HTTP-Tiny/Changes
/usr/share/doc/perl-HTTP-Tiny/LICENSE
/usr/share/doc/perl-HTTP-Tiny/README
/usr/share/doc/perl-HTTP-Tiny/eg
/usr/share/doc/perl-HTTP-Tiny/eg/get.pl
/usr/share/doc/perl-HTTP-Tiny/eg/mirror.pl
/usr/share/doc/perl-HTTP-Tiny/eg/post.pl
/usr/share/doc/perl-IO-AIO/COPYING
/usr/share/doc/perl-IO-AIO/Changes
/usr/share/doc/perl-IO-AIO/README
/usr/share/doc/perl-IO-Compress/Changes
/usr/share/doc/perl-IO-Compress/README
/usr/share/doc/perl-IO-Compress/compress-zlib
/usr/share/doc/perl-IO-Compress/io
/usr/share/doc/perl-IO-Compress/compress-zlib/filtdef
/usr/share/doc/perl-IO-Compress/compress-zlib/filtinf
/usr/share/doc/perl-IO-Compress/compress-zlib/gzcat
/usr/share/doc/perl-IO-Compress/compress-zlib/gzgrep
/usr/share/doc/perl-IO-Compress/compress-zlib/gzstream
/usr/share/doc/perl-IO-Compress/io/anycat
/usr/share/doc/perl-IO-Compress/io/bzip2
/usr/share/doc/perl-IO-Compress/io/gzip
/usr/share/doc/perl-IO-Compress/io/bzip2/bzcat
/usr/share/doc/perl-IO-Compress/io/bzip2/bzgrep
/usr/share/doc/perl-IO-Compress/io/bzip2/bzstream
/usr/share/doc/perl-IO-Compress/io/gzip/gzappend
/usr/share/doc/perl-IO-Compress/io/gzip/gzcat
/usr/share/doc/perl-IO-Compress/io/gzip/gzgrep
/usr/share/doc/perl-IO-Compress/io/gzip/gzstream
/usr/share/doc/perl-IO-HTML/Changes
/usr/share/doc/perl-IO-HTML/LICENSE
/usr/share/doc/perl-IO-HTML/README
/usr/share/doc/perl-IO-Socket-IP/Changes
/usr/share/doc/perl-IO-Socket-IP/LICENSE
/usr/share/doc/perl-IO-Socket-IP/README
/usr/share/doc/perl-IO-Socket-IP/examples
/usr/share/doc/perl-IO-Socket-IP/examples/connect.pl
/usr/share/doc/perl-IO-Socket-IP/examples/nonblocking_libasyncns.pl
/usr/share/doc/perl-IO-Socket-SSL/BUGS
/usr/share/doc/perl-IO-Socket-SSL/Changes
/usr/share/doc/perl-IO-Socket-SSL/README
/usr/share/doc/perl-IO-Socket-SSL/certs
/usr/share/doc/perl-IO-Socket-SSL/docs
/usr/share/doc/perl-IO-Socket-SSL/example
/usr/share/doc/perl-IO-Socket-SSL/util
/usr/share/doc/perl-IO-Socket-SSL/certs/client-cert.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/client-key.enc
/usr/share/doc/perl-IO-Socket-SSL/certs/client-key.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/my-ca.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/proxyca.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/server-cert.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/server-key.enc
/usr/share/doc/perl-IO-Socket-SSL/certs/server-key.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/server-rsa384-dh.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/server-wildcard.pem
/usr/share/doc/perl-IO-Socket-SSL/certs/test-ca.pem
/usr/share/doc/perl-IO-Socket-SSL/docs/debugging.txt
/usr/share/doc/perl-IO-Socket-SSL/docs/net-ssley-ecdh.patch
/usr/share/doc/perl-IO-Socket-SSL/example/async_https_server.pl
/usr/share/doc/perl-IO-Socket-SSL/example/lwp-with-verifycn.pl
/usr/share/doc/perl-IO-Socket-SSL/example/ssl_client.pl
/usr/share/doc/perl-IO-Socket-SSL/example/ssl_mitm.pl
/usr/share/doc/perl-IO-Socket-SSL/example/ssl_server.pl
/usr/share/doc/perl-IO-Socket-SSL/util/export_certs.pl
/usr/share/doc/perl-LWP-MediaTypes/Changes
/usr/share/doc/perl-LWP-MediaTypes/README
/usr/share/doc/perl-MIME-Lite/COPYING
/usr/share/doc/perl-MIME-Lite/LICENSE
/usr/share/doc/perl-MIME-Lite/README
/usr/share/doc/perl-MIME-Lite/changes.pod
/usr/share/doc/perl-MIME-Lite/contrib
/usr/share/doc/perl-MIME-Lite/examples
/usr/share/doc/perl-MIME-Lite/contrib/MailTool.pm
/usr/share/doc/perl-MIME-Lite/contrib/README
/usr/share/doc/perl-MIME-Lite/examples/mime_fwd
/usr/share/doc/perl-MIME-Lite/examples/mime_gif
/usr/share/doc/perl-MIME-Lite/examples/mime_hack
/usr/share/doc/perl-MIME-Lite/examples/mime_longlines
/usr/share/doc/perl-MIME-Lite/examples/mime_postcard
/usr/share/doc/perl-MIME-Lite/examples/nodisp
/usr/share/doc/perl-MIME-Types/ChangeLog
/usr/share/doc/perl-MIME-Types/README
/usr/share/doc/perl-MIME-tools/COPYING
/usr/share/doc/perl-MIME-tools/ChangeLog
/usr/share/doc/perl-MIME-tools/README
/usr/share/doc/perl-MIME-tools/examples
/usr/share/doc/perl-MIME-tools/examples/README
/usr/share/doc/perl-MIME-tools/examples/mimeabuse
/usr/share/doc/perl-MIME-tools/examples/mimeprint
/usr/share/doc/perl-MIME-tools/examples/mimeref
/usr/share/doc/perl-MIME-tools/examples/mimesender
/usr/share/doc/perl-MIME-tools/examples/mimetour
/usr/share/doc/perl-Mail-IMAPClient/Changes
/usr/share/doc/perl-Mail-IMAPClient/README
/usr/share/doc/perl-Mail-IMAPClient/examples
/usr/share/doc/perl-Mail-IMAPClient/examples/build_dist.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/build_ldif.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/cleanTest.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/copy_folder.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/cyrus_expire.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/cyrus_expunge.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/find_dup_msgs.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/idle.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/imap_to_mbox.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/imtestExample.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/migrate_mail2.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/migrate_mbox.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/populate_mailbox.pl
/usr/share/doc/perl-Mail-IMAPClient/examples/sharedFolder.pl


Its too lengthy. So i have paste3d only a small portion of output.

.[root@localhost Zulfi]# env
XDG_VTNR=1
XDG_SESSION_ID=1
HOSTNAME=localhost.localdomain
IMSETTINGS_INTEGRATE_DESKTOP=yes
GPG_AGENT_INFO=/run/user/1000/keyring-D7T7s3/gpg:0:1
XDG_MENU_PREFIX=gnome-
SHELL=/bin/bash
TERM=xterm-256color
VTE_VERSION=3409
HISTSIZE=1000
GJS_DEBUG_OUTPUT=stderr
WINDOWID=41943046
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-D7T7s3
PERL_MB_OPT=--install_base "/root/perl5"
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
QT_GRAPHICSSYSTEM_CHECKED=1
IMSETTINGS_MODULE=none
USER=lab6
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
SSH_AUTH_SOCK=/run/user/1000/keyring-D7T7s3/ssh
USERNAME=lab6
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1558,unix/unix:/tmp/.ICE-unix/1558
DESKTOP_SESSION=gnome
MAIL=/var/spool/mail/lab6
PATH=/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/lab6/.local/bin:/home/lab6/bin
QT_IM_MODULE=ibus
PWD=/home/lab6/Zulfi
XMODIFIERS=@im=ibus
LANG=en_US.UTF-8
GNOME_KEYRING_PID=1483
GDM_LANG=en_US.UTF-8
GDMSESSION=gnome
HISTCONTROL=ignoredups
SHLVL=3
XDG_SEAT=seat0
HOME=/root
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=lab6
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-gDj3KZHCdZ,guid=f0d8da91715c843f1f0305315497f23b
LESSOPEN=||/usr/bin/lesspipe.sh %s
WINDOWPATH=1
DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/1000
PERL_MM_OPT=INSTALL_BASE=/root/perl5
XAUTHORITY=/root/.xautheP2asX
COLORTERM=gnome-terminal
CCACHE_HASHDIR=
OLDPWD=/home/lab6
_=/usr/bin/env
[root@localhost Zulfi]# echo $PATH
/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/lab6/.local/bin:/home/lab6/bin
[root@localhost Zulfi]# 


Please guide me.

Zulfi.

Apologies - the "tail" end. What I was interested in is the value of %ENV and @INC:

%ENV:
  PERL_MB_OPT="--install_base "/root/perl5""
  PERL_MM_OPT="INSTALL_BASE=/root/perl5"
@INC:
   /usr/local/lib64/perl5
   /usr/local/share/perl5
   /usr/lib64/perl5/vendor_perl
   /usr/share/perl5/vendor_perl
   /usr/lib64/perl5
   /usr/share/perl5
   .

The error occurs because Audio/Beep.pm ) is not found in any of the directories listed for @INC.
Looking at your sample, did the make install do anything?

Hi,
Thanks for your reply. I am able to install it using yum. Following is the output of running yum:

[root@localhost Audio-Beep-0.11]# yum install perl-Audio-Beep
Loaded plugins: langpacks, refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 2317.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  60 M RSS (464 MB VSZ)
    Started: Wed Dec 24 06:52:38 2014 - 00:40 ago
    State  : Sleeping, pid: 2317
Resolving Dependencies
--> Running transaction check
---> Package perl-Audio-Beep.noarch 0:0.11-11.fc20 will be installed
--> Processing Dependency: beep for package: perl-Audio-Beep-0.11-11.fc20.noarch
--> Running transaction check
---> Package beep.x86_64 0:1.3-7.fc20 will be installed
--> Finished Dependency Resolution

At one point it seems that 'yum' was giving some error. The current value of @INC is:

 Built under linux
  Compiled at Oct  3 2014 12:05:47
  %ENV:
    PERL_MB_OPT="--install_base "/root/perl5""
    PERL_MM_OPT="INSTALL_BASE=/root/perl5"
  @INC:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
    .
[root@localhost lab6]#

Now i am not getting @INC error but there is no beep. The beep program which i am trying to execute is:

[root@localhost lab6]# cat beep.pl
#!/usr/bin/perl
use Audio::Beep;
my $beeper=Audio::Beep->new();

                # lilypond subset syntax accepted
                # relative notation is the default 
                # (now correctly implemented)
$music = "g' f bes' c8 f d4 c8 f d4 bes c g f2";
                # Pictures at an Exhibition by Modest Mussorgsky

    $beeper->play( $music );

[root@localhost lab6]#

Kindly guide why I cant here any beep?

Zulfi.

Hi

Fedora has that already in the repos, and it seems it requires the package beep as well.

yum search audio beep
Loaded plugins: langpacks
============================================= N/S matched: audio, beep ==============================================
perl-Audio-Beep.noarch : Audio::Beep Perl module
sudo yum install perl-Audio-Beep
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package perl-Audio-Beep.noarch 0:0.11-12.fc21 will be installed
--> Processing Dependency: beep for package: perl-Audio-Beep-0.11-12.fc21.noarch
--> Running transaction check
---> Package beep.x86_64 0:1.3-9.fc21 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================
 Package                         Arch                   Version                         Repository              Size
=====================================================================================================================
Installing:
 perl-Audio-Beep                 noarch                 0.11-12.fc21                    fedora                  28 k
Installing for dependencies:
 beep                            x86_64                 1.3-9.fc21                      fedora                  30 k

Transaction Summary
=====================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 58 k
Installed size: 77 k
Is this ok [y/d/N]: 
yum info beep
Loaded plugins: langpacks
Available Packages
Name        : beep
Arch        : x86_64
Version     : 1.3
Release     : 9.fc21
Size        : 30 k
Repo        : fedora/21/x86_64
Summary     : Beep the PC speaker any number of ways
URL         : http://www.johnath.com/beep/
License     : GPLv2+
Description : Beep allows the user to control the PC speaker with precision,
            : allowing different sounds to indicate different events. While it
            : can be run quite happily on the commandline, its intended place
            : of residence is within shell/perl scripts, notifying the user when
            : something interesting occurs. Of course, it has no notion of
            : what's interesting, but it's real good at that notifying part.

Hope this helps

Hi,
Please tell me how to install the beep function. I have already installed Audio::Beep but i cant hear any beep.

Please tell me the command to install the beep function not the Audio::Beep module which i have already installed using yum.

Zulfi.

Hi Zulfi

As reported in previous post by yum search audio beep , Audio::Beep is the very same as beep .
On howto install a package using yum , please see the first bold lines in my previous post.

gn8 & hth

Hi,
Thanks for your reply. My friend i have already installed Audio::Beep in my post # 5. But its not generating any beep. Post# 5 also shows my program. Please guide me how to generate the Beep. What's wrong in my program in post#5?

Zulfi.

Sorry cant get a beep myself.
You might have more chances running it as root though... (see: man beep for details)

Just wanted to help you get it installed.

Check and see if the pc speaker is blacklisted. I think it would be in /etc/modprobe.d/ . Look for something like...

blacklist pcspkr
blacklist snd-pcsp
1 Like

There's a beep.conf in that directory /etc/modprobe.d/ , i've just uncommented the alias line, rebooted and...
beep -> BEEP :slight_smile:

Great. I'll have to make a note of that beep.conf you mentioned.

Hi,
Thanks for help. I tried but still i am not able to hear any beep yet.

[root@localhost lab6]# cat beep2.pl
#!/usr/bin/perl
#use lib '/home/lab6/Audio-Beep-0.11';
use Audio::Beep;
my $beeper=Audio::Beep->new();

                # lilypond subset syntax accepted
                # relative notation is the default 
                # (now correctly implemented)
$music = "g' f bes' c8 f d4 c8 f d4 bes c g f2";
                # Pictures at an Exhibition by Modest Mussorgsky

    $beeper->play( $music );

[root@localhost lab6]# vi test
[root@localhost lab6]# perl beep2.pl
[root@localhost lab6]# cd /etc/modprobe.d
[root@localhost modprobe.d]# ls
beep.conf  openfwwf.conf
[root@localhost modprobe.d]# cat beep.conf
# Uncomment the following line to have the pcspkr driver loaded
# automatically on boot
  alias platform:pcspkr pcspkr
[root@localhost modprobe.d]# cat beep2.pl
cat: beep2.pl: No such file or directory
[root@localhost modprobe.d]# 



Please guide me how to solve this problem. I am hearing beeps in vi editor if i make any mistake.

Zulfi.

Your code works just fine for me.
Did you restart the computer after you have disabled the alias line?

If not, do so now and enjoy your music afterwards :slight_smile:
hth

Hi,
I have uncommented the alias line. Today I started the computer again but still there is no beep.

Please help me to solve this problem.

Zulfi.