LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2014, 04:03 AM   #76
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2

Hi,
Technically speaking your hint is not workable. I already have '.' path in my @INC variable.
Code:
[root@localhost lab6]# perl -e 'print join"\n",@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]# 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
    .
[root@localhost lab6]# cd Zulfi
[root@localhost Zulfi]# ls
imap01.pl  imap2.pl  imap.pl
[root@localhost Zulfi]# cp imap01.pl ..
[root@localhost Zulfi]# cd ..
[root@localhost lab6]# ls
acct21.pl~              Documents     ismails.pl~          server2.pl~
acct2.pl~               imap01.pl     lab11                Server2.pl
Audio-Beep-0.11         imap(2).pl    LinuxForumDec10.odt  server.pl~
Audio-Beep-0.11.tar.gz  imap2.pl      Proxy.pl             waqc.pl~
client.pl~              imap.pl       proxyserver.pl~      waqs.pl~
Client.pl               ismailc.pl~   Public               Zulfi
Desktop                 ismails2.pl~  Server1.pl
[root@localhost lab6]# 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.
[root@localhost lab6]#
Its purely an installation problem which is beyond the limits of a teacher. Somebody please help me with this.

Zulfi.
 
Old 12-23-2014, 08:18 AM   #77
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zak100 View Post
Hi,
Technically speaking your hint is not workable. I already have '.' path in my @INC variable.
...which would only help if that module was IN the current working directory...which it IS NOT.
Quote:
Its purely an installation problem which is beyond the limits of a teacher. Somebody please help me with this.
STOP LYING...you are NOT a teacher, and no one believes that you are. You have been helped, MANY times, but just DO NOT UNDERSTAND the answer. AGAIN, go back and read the installation path, and modify INC accordingly.

And AGAIN, this 'universal' problem doesn't seem to effect anyone but you. You said you were 'boycotting' this forum, but come back and beg for handouts. No one here is able to help you, because you ARE NOT UNDERSTANDING the answers you're getting. You say you're a 'teacher', and that these installations are for systems administrators...then say that your administrators can't do it.

Please, go beg for handouts elsewhere...we can't make you understand things that you are unable to.
 
Old 12-24-2014, 05:33 AM   #78
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,

I have copied the program in Audio-Beep directory but still its giving the same message.
Code:
[root@localhost Audio-Beep-0.11]# 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.
[root@localhost Audio-Beep-0.11]# pwd
/home/lab6/Audio-Beep-0.11
[root@localhost Audio-Beep-0.11]# ls
beep-1.2.2  blib       lib          MANIFEST  pm_to_blib  t
Beep.pm     Changes    Makefile     META.yml  pods
Beep.pod    imap01.pl  Makefile.PL  music     README
[root@localhost Audio-Beep-0.11]#
Still the two minutes problem is not solved.
Wish you a people great 'Christmas' tomorrow & a happy new year after 6 days.

Zulfi.
 
Old 12-24-2014, 06:13 AM   #79
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi

I am able to install Audio::Beep using yum but i am not getting any beep though its working in windows.
Code:
[root@localhost Audio-Beep-0.11]# perl imap01.pl
I'm authenticated
Folders:
* INBOX
* Personal
* Receipts
* Travel
* Work
* [Gmail]
* [Gmail]/All Mail
* [Gmail]/Drafts
* [Gmail]/Important
* [Gmail]/Sent Mail
* [Gmail]/Spam
* [Gmail]/Starred
* [Gmail]/Trash
There are 125 messages waiting.
89Total messages in INBOX are 125
and a small yum output:
Code:
[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
Zulfi.

Last edited by zak100; 12-24-2014 at 06:16 AM.
 
Old 12-24-2014, 09:29 AM   #80
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zak100 View Post
Hi,
I have copied the program in Audio-Beep directory but still its giving the same message.
Right....because you don't just 'copy' it to perform the installation. AGAIN, as you've been told MULTIPLE TIMES, you need to MODIFY your INC to match what the installation program did/where it copied things to. Since you're a 'teacher', you must know that modules don't work entirely on their own, right????
Quote:
Still the two minutes problem is not solved.
Because you aren't doing what's suggested or reading instructions, and you are apparently unable to understand what you're being told. Asking the same thing over and over is POINTLESS.
Quote:
Originally Posted by zak100
I am able to install Audio::Beep using yum but i am not getting any beep though its working in windows.
...and Windows doesn't matter, since this is LINUXquestions, so try to focus on that. And based on this:
Quote:
Originally Posted by zak100
and a small yum output:
Code:
[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
It was NOT installed using yum...are you not able to read or understand these things???? It tells you VERY PLAINLY that yum isn't going to work, since there is ANOTHER process using it. All it's doing is a basic check, and exiting. And AGAIN, unless you install the YAML pieces of things, THIS won't work right either.

Stop where you are, because you are VERY OBVIOUSLY not able to understand even the BASICS of what you're trying to do.
 
Old 12-26-2014, 12:36 AM   #81
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
I dont much about @INC. I am doing according to google search & what you people are saying. Based upon this i tried to update @INC but its not storing the path in it.
Code:
[root@localhost lab6]# perl installAud.pl
[root@localhost lab6]# perl beep.pl
[root@localhost lab6]# 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
    .
[root@localhost lab6]#

& the code to add into @INC is:

Code:
[root@localhost lab6]# cat installAud.pl
#!/usr/bin/perl
BEGIN {
push @INC, '/home/lab6/Audio-Beep-0.11'};

[root@localhost lab6]# perl installAud.pl
[root@localhost lab6]#

And the path for Audio::Beep is:

Code:
[root@localhost lab6]# ls
acct21.pl~              Desktop        ismails2.pl~         server2.pl~
acct2.pl~               Documents      ismails.pl~          Server2.pl
Audio-Beep-0.11         imap01.pl      lab11                server.pl~
Audio-Beep-0.11.tar.gz  imap(2).pl     LinuxForumDec10.odt  waqc.pl~
beepFed.pl              imap2.pl       Proxy.pl             waqs.pl~
beep.pl                 imap.pl        proxyserver.pl~      Zulfi
client.pl~              installAud.pl  Public
Client.pl               ismailc.pl~    Server1.pl
[root@localhost lab6]# cd Audio-Beep-0.11
[root@localhost Audio-Beep-0.11]# ls
beep-1.2.2  blib       lib          MANIFEST  pm_to_blib  t
Beep.pm     Changes    Makefile     META.yml  pods
Beep.pod    imap01.pl  Makefile.PL  music     README
[root@localhost Audio-Beep-0.11]# pwd
/home/lab6/Audio-Beep-0.11
[root@localhost Audio-Beep-0.11]#
Please guide why the beep program is not generating any beep?

The beep program is:

Code:
[root@localhost Audio-Beep-0.11]# pwd
/home/lab6/Audio-Beep-0.11
[root@localhost Audio-Beep-0.11]# cd ..
[root@localhost lab6]# perl beep.pl
[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]#
Zulfi.

Last edited by zak100; 12-26-2014 at 12:40 AM.
 
Old 12-27-2014, 04:43 PM   #82
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zak100 View Post
Hi,
I dont much about @INC. I am doing according to google search & what you people are saying. Based upon this i tried to update @INC but its not storing the path in it.

Please guide why the beep program is not generating any beep?
Because you STILL are not understanding what you're doing, and don't seem to be able to learn. And again, you appear to be lying about things...putting "how to update @inc in perl" brings up LOTS...NONE of which are what you are doing. The VERY FIRST HIT is:
http://perlmaven.com/how-to-change-i...dard-locations

...which lists SEVERAL ways, including how to call modules from specific directories. VERY basic Perl programming, which (as a 'teacher'), you should know. You again show no effort of your own, and ask for handouts. Please stop doing this, and please do as you said you would before, and 'boycott' this forum.
 
Old 12-28-2014, 03:39 PM   #83
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Dear all,
Please stop the aggresive tone immediately! There's no place for this on LQ. If not, this thread is going to be closed really soon.

Regards
 
Old 12-29-2014, 05:42 AM   #84
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2
Hi,
I have already tried this but its not generating any beep.
Code:
[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]#
also no problem with compilation
Code:
[root@localhost lab6]# perl beep2.pl
[root@localhost lab6]# cat beep2.pl
Somebody please guide me with this problem. I am getting beeps when i am making mistakes in my vi editor.

Zulfi.

Last edited by zak100; 12-29-2014 at 05:44 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix SMTP relay via gmail using original sender email address? bdobolina Linux - Server 4 05-01-2012 06:21 AM
Command based email client to send email through secure smtp havolinec Linux - Newbie 2 07-27-2010 07:40 AM
Problems with perl sending email with Gmail SMTP sadarax Programming 3 09-12-2009 07:17 PM
Perl and Gmail SMTP the_imax Programming 3 04-09-2009 06:33 AM
PHP SMTP connection to gmail SMTP protocol violation ratcateme Programming 9 02-23-2009 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration