Perl deleted
I believe my co-worker accidently deleted some of the Perl files included with Leopard. What is the best way to re-install Perl so it functions properly?
The OS X installer has different options to erase everything first, Erase and Install, or to just replace the system files keeping the user files and third-party apps in place, Archive and Install.
Pacifist has a neat feature that can compare the installer packages on the OS X DVD and the actual files installed on your system. It will tell you exactly what is missing, then you can select just those missing parts to reinstall. Read all the info on their web site, this is probably your best option, and really cool software, it was mentioned in an article in the last issue of MacWorld magazine.
http://www.charlessoft.com/Pacifist_Documentation/English/index.html
Sorry, I didn't realize there wasn't a 10.5 perl package available via fink.
Similar Messages
-
Perl script segfaults if I remove a print !!!
Hi,
I'm currently trying to resolve a segmentation fault I met 6 months ago. I've resolved it by forcing a delete of of hash keys in the right order. However, I would like to let Perl delete the variables when they are out of scope, without having to forcing it. I wrote a perl script that works, however only if I do not comment out a print statement! You can try my code which is hosted at http://pastebin.com/tgjXHFgc
Before executing it you'll need to create the directory /tmp/test or to change the DIR constant, and to fix the real path to your Sleepycat::DbXml installation (line 2 in my code)
If I comment out the line 33 the script segfaults. If you, the guys who wrote this API could find the reason of this bug, I would appreciate it :)The code crash before calling any DBXML functions. So it looks like a pure perl coding/lib issue.I do not agree. The code crash after having checked for the document in the database and having stored it.
09:59:47|cyril@lizzie:/tmp$ rm -f /tmp/test/*
10:00:45|cyril@lizzie:/tmp$ perl test.pl
<a>
<title> my title </title>
<balance id="10"> amount of balance </balance>
</a>
Storing document
Database handles still open at environment close
Segmentation fault
10:00:46|cyril@lizzie:/tmp$ ls /tmp/test
__db.001 __db.003 __db.005 log.0000000001
__db.002 __db.004 __db.006 test.dbxml
dbxml_dump -h /tmp/test test.dbxml|grep -A 100 secondary_document
xml_database=secondary_document
VERSION=3
format=bytevalue
type=btree
db_pagesize=8192
keys=1
HEADER=END
02011d
6462786d6c5f3200
02361d
437972696c00
02371d
20342031303a30303a3436203230313100
02381d
726567756c617200
DATA=END
xml_database=node_nodestorage
VERSION=3
format=bytevalue
type=btree
db_pagesize=8192
keys=1
HEADER=END
02010200
02010200405554462d3800
02010400
02880d010107000301100a00010500
02010500
02808d010107000101040061000301000a00
02010600
021c02020105007469746c65000f01000a0000206d79207469746c652000
02010700
022e01020201050062616c616e6365001801000a000020616d6f756e74206f662062616c616e636520000700696400313000010600
DATA=END
Edited by: cscetbon on 4 juil. 2011 01:05 -
Perl script to delete attributes with space value
Hi,
We are using Iplanet Ldap Directory server on hp-UX 11i.
I have a problem here with the attribute values.There is a space (a blank space) for few attributes across the directory server.
They seem to be normal when lokked through the ldap console. But when retrieving data through ldapsearch utility they appear as Junk character.
The only solution for this may be find and delete those attributes and add new one's.
eg: telephoneNumber :: RASWD== ( when the attribute has one space value,nothing else)
My issue is iam not able to trace the attributes through perl ldap scripts.
If anyone can help me out with a script it would be great.There are few thousand employees data appear corrupted.
Thanks in advance.This is how SunOne avoids storing lots of extra spaces (and thus using disk/memory) It base 64 encodes the entries. I believe you can use the -B flag to ldapsearch to display the entry as it really appears not encoded.
If you really wanted to ideantify them I would write a perl script to locate attribute:: in a db2ldif of the install.
That would at least tell you which ones have the issue with spaces -
SMS gets deleted automatically in blackberry Perl 8120 model
Hi all,
I am using blackberry Perl 8120 model.
My sms got deleted automatically even the have set "forever" for "Keep Messages" option.
Because of this i had lost many important sms etc. Can somebody suggest how to resolve this.
Thanks in Advance.
With Regards
HemantJSanders wrote:
hem_kec wrote:
The free file status is changed from 2355272 bytes to 6334580 bytes after reboot.
Is it bug ?
No, it's not a bug. It's called low memory. You were at 2MB file free, after reboot, at 6MB file free.
Neither of which are really acceptable.
Read this: http://www.blackberryforums.com/general-blackberry-discussion/116396-managing-your-bb-memory-lost-ca...
And this: http://www.blackberryforums.com/general-blackberry-discussion/112029-losing-call-logs-sms-emails-opt...
Additional links to read:
http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB15345&sliceId=SAL_Pub...
http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB14320&sliceId=SAL_Pub...
http://www.blackberry.com/btsc/dynamickc.do?externalId=KB14213&sliceId=SAL_Public&command=show&forwa...
I was having the same problems, and this answered it for me. However, it seems to me that this is a poor design in how the device handles insufficent memory situations. It seems to me that the device should alert the user to the situation first, and then ask whether to crash abort what it's doing, or to allow it to continue at the risk of messages getting deleted. I would've never had a clue as to what was happening, except to suspect that my device was bad. Maybe this could be a future design fix. -
Cannot delete multiple email messages on my Perl - HELP
I have a feeling that I am behind this issue, but I am stuck to even get a clue where to get started.
I have a Blackberry Perl 8130 and have used the Shift key to highlight multiple messages so I can delete them en masse.
Recently, I upgraded my Opera Mini 4.1 to my device and then decided to install the Google Maps application.
Well, after installing these items, I found that I could no longer use the Shift Key to assist me to select multiple messages for deletion.
I have uninstalled Opera Mini and will uninstall Google Maps next. My main concern is that whatever setting was affected will not be changed back.
Is anyone on the board familiar with this issue? Is this a setting that I can reset manually?
Thanks in advance for any and all responses.I have had my 8130 for less than 2 months and was also completely at a loss on how to do this. Thanks! Kudos!
-
Can I disable/delete CarbonCore, Perl, Python and Ruby...
without causing any issues to my mbp (early 2011)? I'm not a developer so I'm not sure why I'd need them but if they're vital to running SL 10.6.8 then I won't disable them. Reason I'm asking is that MacScan is picking up multiple issues in my /usr/share/emacs/22.1/etc location. I just learned what an emac was today and I'm not sure why this is on my mbp. All of my sharing is turned off in system preferences but when I click on xgrid a drop down message appears that say "unable to locate xgrid agent. Screen sharing is turned on." One file in particular is labeled condom.1 and was created back in 2006. The file is written as follows:
CONDOM(1) EUNUCH Programmer's Manual CONDOM(1)
NAME
condom - Protection against viruses and prevention of child
processes
SYNOPSIS
condom [options] [processid]
DESCRIPTION
_condom_ provides protection against System Transmitted
Viruses (STVs) that may invade your system. Although the spread of
such viruses across a network can only be abated by aware and cautious
users, _condom_ is the only highly-effective means of preventing
viruses from entering your system (see celibacy(1)). Any data passed
to _condom_ by the protected process will be blocked, as specified by
the value of the -s option (see OPTIONS below). _condom_ is known to
defend against the following viruses and other malicious
afflictions...
o AIDS
o Herpes Simplex (genital varieties)
o Syphilis
o Crabs
o Genital warts
o Gonorrhea
o Chlamydia
o Michelangelo
o Jerusalem
When used alone or in conjunction with pill(1), sponge(1),
foam(1), and/or setiud(3), _condom_ also prevents the conception of a
child process. If invoked from within a synchronous process, _condom_
has, by default, an 80% chance of preventing the external processes
from becoming parent processes (see the -s option below). When other
process contraceptives are used, the chance of preventing a child
process from being forked becomes much greater. See pill(1),
sponge(1), foam(1), and setiud(3) for more information.
If no options are given, the current user's login process (as
determined by the environment variable USER) is protected with a
Trojan rough-cut latex condom without a reservoir tip. The optional
'processid' argument is an integer specifying the process to protect.
NOTE: _condom_ may only be used with a hard disk. _condom_
will terminate abnormally with exit code -1 if used with a floppy
disk (see DIAGNOSTICS below).
OPTIONS
The following options may be given to _condom_...
-b BRAND BRANDs are as follows...
trojan (default)
ramses
sheik
goldcoin
fourex
-m MATERIAL The valid MATERIALs are...
latex (default)
saranwrap
membrane -- WARNING! The membrane option is _not_
endorsed by the System Administrator General as an
effective barrier against certain viruses. It is
supported only for the sake of tradition.
-f FLAVOR The following FLAVORs are currently supported...
plain (default)
apple
banana
cherry
cinnamon
licorice
orange
peppermint
raspberry
spearmint
strawberry
-r Toggle reservoir tip (default is no reservoir tip)
-s STRENGTH STRENGTH is an integer between 20 and 100 specifying
the resilience of _condom_ against data passed to
_condom_ by the protected process. Using a larger
value of STRENGTH increases _condom_'s protective
abilities, but also reduces interprocess communication.
A smaller value of STRENGTH increases interprocess
communication, but also increases the likelihood of a
security breach. An extremely vigorous process or
one passing an enormous amount of data to _condom_
will increase the chance of _condom_'s failure. The
default STRENGTH is 80%.
-t TEXTURE Valid TEXTUREs are...
rough (default)
ribbed
bumps
lubricated (provides smoother interaction between
processes)
WARNING: The use of an external application to _condom_ in
order to reduce friction between processes has been proven in
benchmark tests to decrease _condom_'s strength factor! If execution
speed is important to your process, use the '-t lubricated' option.
DIAGNOSTICS
_condom_ terminates with one of the following exit codes...
-1 An attempt was made to use _condom_ on a floppy disk.
0 _condom_ exited successfully (no data was passed to
the synchronous process).
1 _condom_ failed and data was allowed through. The
danger of transmission of an STV or the forking of a child
process is inversely proportional to the number of other
protections employed and is directly proportional to
the ages of the processes involved.
BUGS
_condom_ is NOT 100% effective at preventing a child process
from being forked or at deterring the invasion of a virus (although
the System Administrator General has deemed that _condom_ is the most
effective means of preventing the spread of system transmitted
viruses). See celibacy(1) for information on a 100% effective program
for preventing these problems.
Remember... the use of sex(1) and other related routines
should only occur between mature, consenting processes. If you must
use sex(1), please employ _condom_ to protect your process and your
synchronous process. If we are all responsible, we can stop the
spread of STVs.
AUTHORS and HISTORY
The original version of _condom_ was released in Roman times
and was only marginally effective. With the advent of modern
technology, _condom_ now supports many more options and is much more
effective.
The current release of _condom_ was written by Ken Maupin at
the University of Washington ([email protected]) and was last
updated on 10/7/92.
SEE ALSO
celibacy(1), sex(1), pill(1), sponge(1), foam(1), and
setiud(3)
Is this some sort of opensource coding joke? Thanks in advance for any help!The first Apple Care rep didn't seem incompetent but not exactly up to speed on lower level system issues. The second AppleCare rep suggested ESET CyberSecurity for Mac and I purchased it while on the phone with this AppleCare rep. That didn't solve the issue either. I also used ClamXav which is Apple endorsed since it's available and free in the App Store. No dice on the results though. I then also purchased Intego Virus Barrier, also in the App Store but to no avail since, as I later discovered, I don't actually have a virus, since Mac viruses don't exist. I then was instructed by another AppleCare rep to reset the PRAM as well as doing an SMC reset but still the issue remains.
MacScan doesn't detect viruses. Only malware and trojans and it didn't even detect this trojan but alerted me to some odd messages alerts in the Console utility specifically in regards to the usr/share section . That's how I discovered something must be wrong and I contacted Apple once again and they asked me to ship my mbp to them in California and they shipped me a new replacement direct from Shanghai. And once again after 10+ Express Lane cases and one emailed system shot from a data gatherer application sent to me by a Senior Technical Advisor from Worldwide AppleCare and returned to him, I'm still having the same issue and no, I'm not the only one to have experienced this issue so thanks for the congratulations but I'll share the congrats with the other unfortunate users who are experiencing the same frustrating issue but not all carried out in the same manner as mine. I thought instead of trying to only work with AppleCare, who've been stellar btw in terms of customer service, I'd go ahead and give the community a shot at possible solving the problem in hopes of answering my question. Unfortnately the previous hostile responses from the community act as though I'm being sarcastic or something. I assure you I'm not.
No, apparently not all trojans are detected by the built in malware protection in SL. I'm not trying to make this some outdated Mac vs. PC battle, which is juvenile in my opinion and accomplishes nothing. I'm a big fan of all things Apple and always have been.
There are quite a few trojans written everyday and so far I haven't noticed daily security updates from Apple b/c there's no realistic way to keep up with an ultra fast response to new ones until they're actually discovered however, I get the security updates every few weeks or so for SL and I'm grateful for that. Maybe now all active trojans are detected by Lion but I haven't upgraded yet so I wouldn't know but I hope to upgrade soon. Seems like a kewl OS and hopefully impregnable.
No, I didn't read an article an Ars Techinca but I did read an article on the battery firmware password exploit on slashdot which was linked to a threatpost.com article. If I recall correctly it didn't mention much other than the default password issue for the battery firmware but I believe it had to do with some guy trying to kill the battery or blow up the machine which apparenty didn't work. Nothing about the way the exploit can be carried out to alter your OS.
Anyway, thanks for your answer to my question. Much appreciated and best regards. -
I'm very disappointed with Apple over the very poor documentation and support for what is potentially an extremely valuable asset in the Mac OSX tool box i.e. being able to test Perl scripts locally using the Apache software included under OSX.
Because it's taken me 2 days to wade through the discussions here and find resources online I want to help others avoid my delays and post what I found. I would also like to comment that the unix community active on this list though so very helpful in many ways could resist scorning those who are entirely unfamiliar with terminal and the command line interface and try to condescend to explain in layman's terms what is essentially not that complex but is so shrouded in jargon, shorthand and arcana that it seems almost deliberately difficult to penetrate. I would ask Apple to please just post a simple 'how to' or if they see fit include this email in their FAQ's.
Thank you to the many who have posted on this subject on this list and I apologize if I have used your suggestions without personal credit. I am with this document merely giving back something of what I have taken out of this useful resource. Please feel free to offer amendments to any obvious mistakes or misunderstandings I am a novice at Unix attempting to help other novices because (Ibelieve) I still speak the same language.
This method is for starting Perl under Tiger OS 10.4x (may work for Panther or earlier I haven't tested it) on a desktop machine, not a server.
To start Apache under OSX
1) To turn on Apache just go to System prefs and turn on 'personal web sharing' under the 'sharing' control panel. Note the IP address that appears under the 'Select a service...' window as this is the IP address of your local web address or 'yourlocalhostaddress' (referenced below). This is what you type into the browser to view your pages locally.
2) It seems intuitive to place your web site in the user/yourusername/sites folder on your hard drive. While this is acceptable for basic web sites it seems to make configuration harder for Perl. I could not access a cgi-bin nor find documentation that satisfactorily informed me how to access a cgi-bin created in this location. That doesn't mean it's not possible just that I don't know how to do it.
Apple have created another folder with a pre-configured cgi folder at the following location;
yourharddrive/library/WebServer
Place your website in the 'Documents' folder and your Perl scripts in the 'CGI_Executables' folder. It's unnecessarily confusing to me that Apple have essentially renamed the cgi-bin to 'CGI_Executables' and the 'html' folder to 'documents' as they would be found under the Apache installation that I'm familiar with but that seems to be what's happened here.
To start Perl support in Apache under OSX
3) If you dont already have one it's useful to have an ultra simple Perl script on hand to test whether your configuration is working. More complex script such as formmail.pl may have additional settings that are confusing as to whether it's the file or the configuration that is causing a script error. To create a simple script copy and paste the following code;
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Hello, World.";
into a new, empty document in a text editor and save it as 'first.pl' in your 'CGI_Executables' folder. You can open it in Safari using the following address;
http://yourlocalhostaddress/cgi-bin/first.pl
4) If you test your script now a call to the Perl script will merely open the page with the script as text and will not run it. This is because Apple supplies their copy of Apache with Perl disabled, it's necessary to edit a file called 'httpd.conf' in order to turn Perl on. The recommended way to turn this file on is using the terminal program but the file can also be located through the mac OS although it is partially hidden, it can be edited in a text editor that is suitable for coding such as BBEdit.
The best online documentation I found about how to edit the httpd.conf file using terminal is here;
http://www.macdevcenter.com/pub/a/mac/2001/12/14/apache_two.html?page=1
However I'm not sure that he is accurate (though I hesitate to disagree with the expert) my experience was significantly different see below(*).
Terminal has useful testing features but the command line is obscure and daunting to the novice. In addition UNIX programmers seem to delight in scaring away the cautious with silly, portentous warnings about privacy etc. This document is very sensitive to the way it's edited, however your computer will not blow up if you get it wrong and there is a back-up default version stored in the same folder so if you do screw up you can restore the defaults and start again.
If you wish to do it without going through the terminal the 'httpd.conf' file is located here;
/private/etc/httpd/httpd.conf
where private is an invisible folder so you cant navigate to it directly via the Mac OS. However if you copy and paste the above address into Safari's address bar the folder window will come up revealing the document (this is an undocumented feature and I discovered it by accident so use at your own risk). Alternatively you can navigate to it using an FTP program such as Transmit when you have 'show hidden files' turned on in the preferences. Transmit is a very useful tool because it also allows you to view and change the permissions (or CHMOD) of the files you view in the same manner as you would on a remote server. Something which you cannot do using the 'Get Info' on the Mac OS
You'll notice that there is an httpd.conf and an httpd.conf.default file. The latter is your backup so dont be overly scared of editing the first file, proceed with caution but not with trembling.
Once you have the program open in BBEdit (or your editor of choice) uncomment the following lines by deleting the # symbol;
#LoadModule perl_module libexec/httpd/libperl.so
#AddModule mod_perl.c
The quickest way to find these lines is to do a find on 'Perl' (something you cant do in Terminal). Dont change anything else just save and close, you will be required to enter your administrator password at this point.
(*)Please note;
Kevin Hemenway in the macdevcenter.com article says to uncomment the following lines;
#LoadModule cgi_module libexec/httpd/mod_cgi.so
#AddModule mod_cgi.c
And makes no mention of the lines ending in perl rather than CGI. His article is from 12/14/2001 so it may be out of date. In my httpd.conf file the lines ending 'cgi' were already uncommented but the lines ending 'perl' were commented out. I uncommented the lines ending 'perl' and now in my version both (cgi and perl) are uncommented and active. There are security implications to uncommenting any lines so I may have opened a security loophole that I'm not aware of however until I uncommented the 'perl' lines my scripts did not work. I would be grateful for an explanation of the implications from any Unix expert reading this.
5) The last thing you need to do is restart Apache so that it can load the new config file. To do this stop web sharing in the preferences pane and then restart it.
If you test your simple Perl script 'first.pl' now it should load and show the text "Hello World" in a browser window.
6) if you wish to load a more complex script and find that they will still not work, at least you know that Perl is working. You can check the error logs by opening the terminal and at the prompt (yourusername$) type;
tail /var/log/httpd/error_log
This enables you to trace the whether a permissions, configuration or other error has occurred.
WARNING;
The above is a distillation of my frustrating experience over the last 2 days, it details how I finally got it to work. With everything in scripting I find that I repeat the same method multiple times, convinced each time that I have it right and all of a sudden it works where it didn't work before. This always leaves me unsure that I may have inadvertently done some thing right (as logically I was obviously inadvertently doing something wrong before) that is not documented here. I offer this method as the product of my experience, because I hope it is helpful and because I have the confidence that there is a way to back out of it using the default config file. Despite the above use at your own risk.
G5 Dual 2.5Ghz + Pbook G4 867Mhz + 15GB iPod Mac OS X (10.4.3)That sounds like a very good useful tip. I would hold on to it in your own computer's repository as well and post sections of it whenever you see someone needing help with it until you are able to add it to the contributions section of the User Tip forum here:
http://discussions.apple.com/category.jspa?categoryID=103 -
Getting error while running Perl adcfgclone.pl appsTier
hi ,
i m getting error while running Perl adcfgclone.pl appsTier
error:ksh: Perl: not found
i check for per and ksh
which perl
/usr/bin/perl
which ksh
/usr/bin/ksh
(my os out put for perl ,my os is SunOS testserver 5.10 Generic_137137-09 sun4u sparc SUNW,Ultra-250)
perl -V
/appl2/applmgr2/prodora/iAS/Apache/perl/lib/5.00503
/appl2/applmgr2/prodora/iAS/Apache/perl/lib/site_perl/5.005
/appl2/applmgr2/prodappl/au/11.5.0/perl
/usr/perl5/5.8.4/lib/sun4-solaris-64int
/usr/perl5/5.8.4/lib
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4
/usr/perl5/site_perl
/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4
/usr/perl5/vendor_perl
which i need to set in path
PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin (like this )
export PATH
please help me outhi ,
here is the out put
# pwd
/appl2/applmgr2/prodora/iAS/Apache/perl
# perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-64int
uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO',
optimize='-xO3 -xspace -xildoff',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Locally applied patches:
22667 The optree builder was looping when constructing the ops ...
22715 Upgrade to FileCache 1.04
22733 Missing copyright in the README.
22746 fix a coredump caused by rv2gv not fully converting a PV ...
22755 Fix 29149 - another UTF8 cache bug hit by substr.
22774 [perl #28938] split could leave an array without ...
22775 [perl #29127] scalar delete of empty slice returned garbage
22776 [perl #28986] perl -e "open m" crashes Perl
22777 add test for change #22776 ("open m" crashes Perl)
22778 add test for change #22746 ([perl #29102] Crash on assign ...
22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's ...
22796 [perl #29346] Double warning for int(undef) and abs(undef) ...
22818 BOM-marked and (BOMless) UTF-16 scripts not working
22823 [perl #29581] glob() misses a lot of matches
22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
22830 [perl #29637] Thread creation time is hypersensitive
22831 improve hashing algorithm for ptr tables in perl_clone: ...
22839 [perl #29790] Optimization busted: '@a = "b", sort @a' ...
22850 [PATCH] 'perl -v' fails if local_patches contains code snippets
22852 TEST needs to ignore SCM files
22886 Pod::Find should ignore SCM files and dirs
22888 Remove redundant %SIG assignments from FileCache
23006 [perl #30509] use encoding and "eq" cause memory leak
23074 Segfault using HTML::Entities
23106 Numeric comparison operators mustn't compare addresses of ...
23320 [perl #30066] Memory leak in nested shared data structures ...
23321 [perl #31459] Bug in read()
27722 perlio.c breaks on Solaris/gcc when > 256 FDs are available
SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
6663288 Upgrade to CGI.pm 3.33
REGEXP0 - fix for UTF-8 recoding in regexps - CVE-2007-5116
Built under solaris
Compiled at Jul 31 2008 12:07:52
@INC:
/usr/perl5/5.8.4/lib/sun4-solaris-64int
/usr/perl5/5.8.4/lib
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4
/usr/perl5/site_perl
/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4
/usr/perl5/vendor_perl
Thanks &Regard -
Script cannot find perl Data:Dumper module
Good day. I live in Australia and use a script called Shepherd to update my mythtv program listings.
After upgrading a couple of days ago (first time in about 6 months) Shepherd has stopped working.
Shepherd doesn't seem to find the perl data-dumper module, which is part of the base perl install.
All my packages are up to date as of this post, and I am on the current kernel -
uname -r
3.4.9-1-ARCH
~/.shepherd/shepherd --check
ERROR:
Mandatory module 'Data::Dumper' not found.
Please see the Wiki at <a href='http://svn.whuffy.com/wiki/Installation' class='bbc_url' title='External link' rel='nofollow external'>http://svn.whuffy.co...ki/Installation</a>
for details on how to install this module.
Shepherd is updating ~/.shepherd/output.xmltv (the listings information scraped from the net) but evidently needs the dumper module to post the data into MythTV.
I'm not sure if it has something to do with this, which I don't properly understand -
The current Arch Linux default perl installation installs updates to core modules into the perl core directories, creating file conflicts. Examples include modules such as Data::Dumper and version.
which is mentioned here.
I appear to have it installed as part of the perl base package -
sudo pacman -Qi perl
Name : perl
Version : 5.16.1-1
URL : <a href='http://www.perl.org' class='bbc_url' title='External link' rel='nofollow external'>http://www.perl.org</a>
Licenses : GPL PerlArtistic
Groups : base
Provides : perl-archive-extract=0.58 perl-archive-tar=1.82 perl-attribute-handlers=0.93 perl-autodie=2.10
perl-autoloader=5.72 perl-autouse=1.07 perl-b-debug=1.17 perl-b-deparse=1.14 perl-b-lint=1.14
perl-base=2.18 perl-bignum=0.29 perl-carp=1.26 perl-cgi=3.59 perl-compress-raw-bzip2=2.048
perl-compress-raw-zlib=2.048 perl-constant=1.23 perl-cpan=1.9800 perl-cpan-meta=2.120630
perl-cpan-meta-yaml=0.007 perl-cpanplus=0.9121 perl-cpanplus-dist-build=0.62 perl-data-dumper=2.135
So it seems Shepherd is suddenly not finding it for some reason, after the upgrade.
I tried installing the perl-data-dumper packages from the AUR (simple and concise) and neither of those made any difference.
I also tried installing the module with a cpan command (as root) but that gave me errors (which I'd rather not have to deal with unless I have to to fix this issue).
cpan
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.
cpan[1]> install data:dumper
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
sh: /bin/gzip: No such file or directory
............................................................................DONE
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
sh: /bin/gzip: No such file or directory
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Subroutine AUTOLOAD redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 31.
Subroutine import redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 49.
Subroutine tv_interval redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 70.
.Could not split line["H\"rW{0M4K\cV1=YFH\cV\c^rqv\c?\c]hKUe\cGL)4:4\cH]C\cPW`_|#MU4}\c_\c_%\cQ\cN\cX8M}%e\cR|\cG-K\c?~\cAM_cREx#AnvAZDi\$\c\!h\cZ\cI^uG0 )>TQ}p{Q[Ah\cNIK\cV+R"]
Could not split line["-6W/GQp\cOm`>UwBP[5"]
Could not split line["\@\cPI\cW,(zY2]uA!fVegsf\\V\cGfL\cHY4ki\cFvLgY\\\c\Ed\cK\cTe-\cC0\@d!?\cSU/\\G8\cAt?(\cY.L\cZ\cBrtl~s[4\@\cF\cWu*D>I"]
Could not split line["hb\cSKA1\cCjX(w/K\cA"]
Giving up parsing your /root/.cpan/sources/modules/02packages.details.txt.gz, too many errorsReading '/root/.cpan/sources/authors/01mailrc.txt.gz'
sh: /bin/gzip: No such file or directory
............................................................................DONE
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
sh: /bin/gzip: No such file or directory
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Subroutine AUTOLOAD redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 31.
Subroutine import redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 49.
Subroutine tv_interval redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 70.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Subroutine AUTOLOAD redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 31.
Subroutine import redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 49.
Subroutine tv_interval redefined at /usr/lib/perl5/site_perl/Time/HiRes.pm line 70.
.Could not split line["H\"rW{0M4K\cV1=YFH\cV\c^rqv\c?\c]hKUe\cGL)4:4\cH]C\cPW`_|#MU4}\c_\c_%\cQ\cN\cX8M}%e\cR|\cG-K\c?~\cAM_cREx#AnvAZDi\$\c\!h\cZ\cI^uG0 )>TQ}p{Q[Ah\cNIK\cV+R"]
Could not split line["-6W/GQp\cOm`>UwBP[5"]
Could not split line["\@\cPI\cW,(zY2]uA!fVegsf\\V\cGfL\cHY4ki\cFvLgY\\\c\Ed\cK\cTe-\cC0\@d!?\cSU/\\G8\cAt?(\cY.L\cZ\cBrtl~s[4\@\cF\cWu*D>I"]
Could not split line["hb\cSKA1\cCjX(w/K\cA"]
Giving up parsing your /root/.cpan/sources/modules/02packages.details.txt.gz, too many errorsTerminal does not support GetHistory.
Lockfile removed.
It says that the 02packages.details.txt.gz file is missing, but it looks like it's there -
ls /root/.cpan/sources/modules/
02packages.details.txt.gz 03modlist.data.gz
I thought I might uninstall and reinstall perl but I got dependency errors and I'm not game to force an uninstall unless I get advice to do so -
pacman -Rs perl
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: automake: requires perl
:: cdrkit: requires perl
:: ddclient: requires perl
:: git: requires perl>=5.14.0
:: groff: requires perl
:: gtk-doc: requires perl
:: hspell: requires perl
:: hyphen: requires perl
:: imagemagick: requires perl
:: lm_sensors: requires perl
:: mod_perl: requires perl
:: openssl: requires perl
:: perl-algorithm-diff: requires perl
:: perl-archive-zip: requires perl>=5.10.0
:: perl-class-factory-util: requires perl
:: perl-class-inspector: requires perl>=5.6.0
:: perl-class-load: requires perl
:: perl-class-methodmaker: requires perl>=5.10.0
:: perl-class-singleton: requires perl>=5.10.0
:: perl-convert-binhex: requires perl
:: perl-data-dump: requires perl>=5.006
:: perl-data-optlist: requires perl-scalar-list-utils
:: perl-datetime-format-builder: requires perl
:: perl-dbi: requires perl
:: perl-digest-sha1: requires perl
:: perl-email-date-format: requires perl
:: perl-encode-locale: requires perl>=5.008
:: perl-error: requires perl>=5.10.0
:: perl-fcgi: requires perl
:: perl-file-listing: requires perl>=5.8.8
:: perl-file-slurp: requires perl>=5.14.0
:: perl-font-afm: requires perl>=5.5.0
:: perl-html-form: requires perl>=5.8.8
:: perl-html-formattext: requires perl>=5.10.0
:: perl-html-parser: requires perl>=5.12.1
:: perl-html-tagset: requires perl>=5.10.0
:: perl-html-tree: requires perl>=5.10.0
:: perl-http-cache-transparent: requires perl>=5.10.0
:: perl-http-cookies: requires perl>=5.8.8
:: perl-http-daemon: requires perl>=5.8.8
:: perl-http-date: requires perl>=5.8.8
:: perl-http-message: requires perl>=5.8.8
:: perl-http-negotiate: requires perl>=5.8.8
:: perl-image-size: requires perl
:: perl-io-socket-ssl: requires perl>=5.10.0
:: perl-io-string: requires perl>=5.10.0
:: perl-io-stringy: requires perl
:: perl-libwww: requires perl>=5.8.1
:: perl-lingua-en-numbers-ordinate: requires perl>=5.10.0
:: perl-lingua-preferred: requires perl>=5.10.0
:: perl-linux-pid: requires perl
:: perl-list-moreutils: requires perl>=5.5.30
:: perl-lwp-mediatypes: requires perl>=5.6.2
:: perl-lwp-protocol-https: requires perl>=5.8.1
:: perl-math-round: requires perl
:: perl-mime-lite: requires perl
:: perl-mime-types: requires perl
:: perl-mozilla-ca: requires perl>=5.006
:: perl-net-http: requires perl>=5.6.2
:: perl-net-upnp: requires perl
:: perl-package-stash: requires perl>=5.8.1
:: perl-package-stash: requires perl-scalar-list-utils
:: perl-package-stash-xs: requires perl>=5.8.1
:: perl-params-classify: requires perl>=5.10.1
:: perl-params-util: requires perl>=5.5.30
:: perl-params-validate: requires perl
:: perl-parse-recdescent: requires perl>=5.10.0
:: perl-perl4-corelibs: requires perl>=5.006
:: perl-soap-lite: requires perl
:: perl-socket6: requires perl
:: perl-sub-exporter: requires perl>=5.6.0
:: perl-sub-install: requires perl
:: perl-sub-uplevel: requires perl
:: perl-term-readkey: requires perl
:: perl-test-warn: requires perl>=5.10.0
:: perl-text-iconv: requires perl
:: perl-timedate: requires perl
:: perl-tk: requires perl
:: perl-unicode-string: requires perl
:: perl-unicode-utf8simple: requires perl>=5.10.0
:: perl-uri: requires perl>=5.10.0
:: perl-www-robotrules: requires perl>=5.8.1
:: perl-xml-dom: requires perl>=5.10.0
:: perl-xml-namespacesupport: requires perl
:: perl-xml-parser: requires perl
:: perl-xml-regexp: requires perl
:: perl-xml-sax: requires perl
:: perl-xml-sax-base: requires perl
:: perl-xml-simple: requires perl
:: perl-xml-twig: requires perl
:: perl-xml-writer: requires perl
:: perl-xml-xpath: requires perl
:: perl-yaml: requires perl>=5.10.0
:: perl-yaml-syck: requires perl
:: rsync: requires perl
:: system-tools-backends: requires perl
:: webmin: requires perl
Any help would be greatly appreciated.
Thanks
belbo
Last edited by belbo (2012-08-26 00:33:52)Thanks
Results as follows -
perl -MData::Dumper -e1
Perl API version v5.14.0 of Data::Dumper does not match v5.16.0 at /usr/lib/perl5/site_perl/XSLoader.pm line 95.
Compilation failed in require.
BEGIN failed--compilation aborted.
$ perl /mnt/Data/Scripts/Perl_Module_Check.pl wheremod Data::Dumper
Data::Dumper /usr/lib/perl5/site_perl/Data/Dumper.pm
Data::Dumper /usr/lib/perl5/core_perl/Data/Dumper.pm
I ran the full delete command after backing up the directories (there was a lot in them)
rm -rf /usr/lib/perl5/site_perl/* /usr/share/perl5/site_perl/*
This resulted in a different missing module -
$ sudo rm -rf /usr/lib/perl5/site_perl/* /usr/share/perl5/site_perl/*
$ ~/.shepherd/shepherd --check
ERROR:
Mandatory module 'List::Compare' not found.
I restored the backup and deleted only Data::Dumper but then got a missing XMLTV module -
$ ~/.shepherd/shepherd --check
$[ used in numeric lt (<) (did you mean $] ?) at /usr/share/perl5/site_perl/XML/Twig.pm line 7278.
$[ used in numeric lt (<) (did you mean $] ?) at /usr/share/perl5/site_perl/XML/Twig.pm line 7284.
$[ used in numeric lt (<) (did you mean $] ?) at /usr/share/perl5/site_perl/XML/Twig.pm line 7296.
ERROR:
Mandatory module 'XMLTV' not found.
Following this post, I did the following, which returned no results -
https://bbs.archlinux.org/viewtopic.php?pid=1110598
$ sudo pacman -Qml | awk '/_perl\/auto\/.+\.so$/ { print $1 }' | uniq
I then did the following -
$ sudo rm -rf /usr/lib/perl5/*
$ sudo pacman -S perl
warning: perl-5.16.1-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets (1): perl-5.16.1-1
Total Installed Size: 48.33 MiB
Net Upgrade Size: 0.00 MiB
Proceed with installation? [Y/n]
(1/1) checking package integrity [#######################################################] 100%
(1/1) loading package files [#######################################################] 100%
(1/1) checking for file conflicts [#######################################################] 100%
(1/1) checking available disk space [#######################################################] 100%
(1/1) upgrading perl [#######################################################] 100%
$ ~/.shepherd/shepherd --check
ERROR:
Mandatory module 'XMLTV' not found.
Oops. Then saw your next post saying not to do that as you'd lose the vendor modules, which I did. I had backed up so I restored, so still have the vendor stuff.
In case its of any assistance, this is what my perl lib and share directories look like -
[ben@htpc ~]$ ls /usr/lib/perl5
core_perl site_perl site_perl.bak vendor_perl
[ben@htpc ~]$ ls /usr/lib/perl5/site_perl
Alien auto Data Encode encoding.pm Filter List Net perlfilter.pod SVN Term Unicode version.pm XML
Attribute Compress Digest Encode.pm FCGI.pm filter-util.pl Math Params Storable.pm Sys Time version version.pod XSLoader.pm
[ben@htpc ~]$ ls /usr/lib/perl5/vendor_perl
Apache Attribute Crypt DateTimePP.pm dbixs_rev.pl GD.pm Image ModPerl Package SNMP.pm Text Unicode YAML
Apache2 auto DateTime DBD Digest gv.pm JSON mod_perl2.pm Params Socket6.pm Tie Win32
APR Bundle DateTime.pm DBI FCGI.pm gv.so Linux Net qd.pl SVN Tk Xfce4
APR.pm Class DateTimePPExtra.pm DBI.pm GD HTML List NetSNMP RRDs.pm Term Tk.pm XML
[ben@htpc ~]$ ls /usr/lib/perl5/core_perl
arybase.pm Compress Cwd.pm DynaLoader.pm Fcntl.pm I18N List ODBM_File.pm perllocal.pod Socket.pm threads.pm
attributes.pm Config_git.pl Data Encode File IO Math Opcode.pm POSIX.pm Storable.pm Tie
auto Config_heavy.pl DB_File.pm Encode.pm Filter IO.pm MIME O.pm re.pm Sys Time
B Config.pm Devel encoding.pm GDBM_File.pm IPC mro.pm ops.pm Scalar Text Unicode
B.pm CORE Digest Errno.pm Hash lib.pm NDBM_File.pm PerlIO SDBM_File.pm threads
[ben@htpc ~]$ ls /usr/share/perl5/
core_perl site_perl vendor_perl
[ben@htpc ~]$ ls /usr/share/perl5/core_perl
AnyDBM_File.pm bignum.pm Config Digest.pm fields.pm IO Object PerlIO.pm Term utf8.pm
App bigrat.pm constant.pm DirHandle.pm File IPC open.pm pod Test vars.pm
Archive blib.pm CPAN Dumpvalue.pm FileCache.pm JSON overload Pod Test.pm version
Attribute bytes_heavy.pl CPANPLUS dumpvar.pl FileHandle.pm less.pm overloading.pm Safe.pm Text Version
autodie bytes.pm CPANPLUS.pm Encode filetest.pm Locale overload.pm Search Thread version.pm
autodie.pm Carp CPAN.pm encoding Filter locale.pm Package SelectSaver.pm Thread.pm vmsish.pm
AutoLoader.pm Carp.pm DBM_Filter English.pm FindBin.pm Log Params SelfLoader.pm Tie warnings
AutoSplit.pm CGI DBM_Filter.pm Env.pm Getopt Math parent.pm sigtrap.pm Time warnings.pm
autouse.pm CGI.pm DB.pm Exporter HTTP Memoize Parse sort.pm Unicode XSLoader.pm
B _charnames.pm deprecate.pm Exporter.pm I18N Memoize.pm Perl strict.pm unicore
base.pm charnames.pm Devel ExtUtils if.pm Module perl5db.pl subs.pm UNIVERSAL.pm
Benchmark.pm Class diagnostics.pm Fatal.pm inc Net perlfaq.pm Symbol.pm User
bigint.pm Compress Digest feature.pm integer.pm NEXT.pm PerlIO TAP utf8_heavy.pl
[ben@htpc ~]$ ls /usr/share/perl5/site_perl
Alien bigint.pm Bundle Class CPANPLUS DateTime ExtUtils HTML IPC Locale LWP.pm Math MythTV Object Try YAML
Archive bignum.pm CGI Compress CPANPLUS.pm Encode File HTTP JSON LWP lwptut.pod Module MythTV.pm Test WWW YAML.pm
Attribute bigrat.pm CGI.pm CPAN Date Env.pm Filter IO List lwpcook.pod Mail Mozilla Net Tie XML
[ben@htpc ~]$ ls /usr/share/perl5/vendor_perl
abbrev.pl bigrat.pl ctime.pl Error Font HTML LWP.pm open2.pl SOAP Time validate.pl
Algorithm cacheout.pl Data Error.pm ftp.pl HTTP Mail open3.pl stat.pl timelocal.pl WWW
Apache CGI Date exceptions.pl getcwd.pl Image Math Package Sub Tree XML
Archive CGI.pm DateTime fastcwd.pl getopt.pl importenv.pl MIME Parse syslog.pl Try XMLRPC
assert.pl chat2.pl Dist File getopts.pl IO Module Perl4 tainted.pl UDDI XMLTV
auto Class dotsh.pl finddepth.pl Git Lingua Mozilla pwd.pl Term Unicode XMLTV.pm
bigfloat.pl complete.pl Email find.pl Git.pm look.pl Net RRDp.pm termcap.pl URI YAML
bigint.pl Convert Encode flush.pl hostname.pl LWP newgetopt.pl shellwords.pl Test URI.pm YAML.pm
Any further assistance would be greatly appreciated.
Thanks
belbo
Last edited by belbo (2012-08-27 13:40:14) -
Deleting a row from a table using javascript.......
Hi,
i am writting an application in which, i need the following:
1. calling a javascript on a click of a button named "Delete"
2. and javascript should delete that particular record under which the delete
button is placed which means... i am placing a delete button and a checkbox
under every record i display on my browser. When the check box is checked ,
and when the user clicks Delete button, it should delete that particular record.
Any one can help me in this please.....
Thanks in Advance....
Bala<p>The short answer: You can't. At least not the way you're asking to.</p>
<p>
JavaScript does not (to my knowledge at least, someone please correct me if I'm wrong) have any way of connecting to an Oracle database to query for content, though it is possible with DHTML to substitute content into the page.
</p><p>
To do what you want, you're going to have to look into server-side scripting languages. Among the more notable examples are PHP, Perl, JSP, and ASP. I would recommend PHP, especially with the PHP right here at Oracle.com.
</p><p>
Anyways, what you're probably going to want to do is have a unique identifier for each row which you would be passing to the server and mark each delete button with that identifier. If you want the operation to be extremely transparent, you would use a HTTP-POST-style form parameter passing as opposed to HTTP-GET (which would expose all arguments on the command line, plus or minus any encryption you attempt to discourage script kiddies from probing the quality of your code).
</p><p>
But the important point here: There is no way to not send a request to the web server and still do what you want to do.
</p><p>
Hope that helps.
</p><p>
Cheers.
</p> -
Deleting files that no longer exist.
Maybe someone can help me. I know you've all seen when a music file no longer exists and it shows up in iTunes with the little .
I just lost an external harddrive recently, requiring me to update all of my music libraries. WMP works fine in that I do a search and it AUTOMATICALLY deletes all files that don't exist. My only option, as far as I can tell, in iTunes is to delete these files from the media library manually.
Someone please tell me there's a better way and Apple just tucked it somewhere inconspicuous. I really don't feel like deleting 10,000 music files manually.
Or does iTunes actually suck that much?I've created a script that will remove all the entries with exclamation marks.
Go to my iTunes scripts page and follow the link to download Perl. Install Perl, then download and run the script "itunesremovenotfound.pl".
HTH,
Rob -
Perl 5.12 Crash on Mail Service
Hi to all
since this morning i got Console full of messages telling that perl 5.12 crashed every 10 seconds
this is the issue:
Jun 18 17:38:51 mail postfix/smtpd[44496]: warning: problem talking to server private/policy: Undefined error: 0
Jun 18 17:38:53 mail postfix/spawn[44997]: warning: command /usr/bin/perl killed by signal 10
I post here also the output from my "postconf -n", i hope this helps
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /Library/Server/Mail/Data/mta
debug_peer_level = 2
enable_server_options = yes
header_checks = pcre:/etc/postfix/custom_header_checks
html_directory = /usr/share/doc/postfix/html
imap_submit_cred_file = /private/etc/postfix/submit.cred
inet_interfaces = all
inet_protocols = all
mail_owner = _postfix
mailbox_size_limit = 0
mailbox_transport = dovecot
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps_rbl_domains =
message_size_limit = 20971520
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, smtp.reteambiente.it, mail.reteambiente.it, reteambiente.it
mydomain = reteambiente.it
mydomain_fallback = localhost
myhostname = mail.reteambiente.it
mynetworks = 127.0.0.0/8,[::1]/128,192.168.0.0/24,92.62.161.120
newaliases_path = /usr/bin/newaliases
postscreen_dnsbl_sites = zen.spamhaus.org*2
queue_directory = /Library/Server/Mail/Data/spool
readme_directory = /usr/share/doc/postfix
recipient_canonical_maps = hash:/etc/postfix/system_user_maps
recipient_delimiter = +
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated permit_mynetworks reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
smtpd_pw_server_security_options = cram-md5,login,plain
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination check_policy_service unix:private/policy permit
smtpd_sasl_auth_enable = yes
smtpd_tls_CAfile = /etc/certificates/mail.reteambiente.it.E9E736E5B8168C9B44FA41332CB109F82713E3AF .chain.pem
smtpd_tls_cert_file = /etc/certificates/mail.reteambiente.it.E9E736E5B8168C9B44FA41332CB109F82713E3AF .cert.pem
smtpd_tls_ciphers = medium
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
smtpd_tls_key_file = /etc/certificates/mail.reteambiente.it.E9E736E5B8168C9B44FA41332CB109F82713E3AF .key.pem
smtpd_use_pw_server = yes
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
use_sacl_cache = yes
virtual_alias_maps = $virtual_maps
Any idea?
thank in advance!hi, i solved just deleting whitelist.db and greylist.db from/Library/Server/Mail/Data/mta
Anyway i disabled GreyListing features from Mail service because it's too buggy... -
Hello,
To delete a user's PAB, it can be done using the Admin Console.
To delete 50,000 users PAB, i think it is inefficient to use Admin Console. Is there any available command line to do it?
the servers we're using are:
NDS 4.12
IMS 5.0 P2
Thanks!If you script it you certainly can delete the pab from 50000 user entries
rather quickly.
Write a perl script or a shell script which loops through all
of the userids and removes the paburi attribute. That is the reason
I gave you the sample ldif file that would be input for the
ldapmodify command.
The logic for this script would be:
for each uid in the list of uids
loop
print the dn to file x.ldif
print the changetype and change commands to file x.ldif
print blank line to file x.ldif
end
once that is done call ldapmodify and feed it the x.ldif
file which would now have entries which look like:
dn: uid=foo,ou=People,o=your.domain.com,o=somesuffix
changetype: delete
delete: paburi
dn: uid=bar,ou=People,o=your.domain.com,o=somesuffix
changetype: delete
delete: paburi
HINT: It does not matter how you generate the x.ldif file (use whatever tools you are comfortable with to get to that point then run the ldapmodify command).
As to your second question, the pab database is stored under the o=pab tree. You have to remove that tree from the ldap directory, but you need to delete the paburi attributes first. -
Using perl DBI on Solaris 10 gives core dump
I am using perl 5.8.4 which comes along with Solaris 10.
I have installed DBI-1.58.
Even a test command is not working.
perl -MDBI -e 'print "$DBI::VERSION\n";'
Bus Error (core dumped)
truss perl -MDBI -e 'print "$DBI::VERSION\n";'
shows
stat("/usr/local/lib/libc.so.1", 0xFFBFE5D0) Err#2 ENOENT
mprotect(0xFEED0000, 104171, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0xFEED0000, 104171, PROT_READ|PROT_EXEC) = 0
munmap(0xFF370000, 8192) = 0
brk(0x000A2470) = 0
brk(0x000A4470) = 0
brk(0x000A4470) = 0
brk(0x000A6470) = 0
brk(0x000A6470) = 0
brk(0x000A8470) = 0
brk(0x000A8470) = 0
brk(0x000AA470) = 0
brk(0x000AA470) = 0
brk(0x000AC470) = 0
Incurred fault #5, FLTACCESS %pc = 0xFEED44CC
siginfo: SIGBUS BUS_ADRALN addr=0x00000001
Received signal #10, SIGBUS [default]
siginfo: SIGBUS BUS_ADRALN addr=0x00000001
$perl -v
command shows like its compiled with Intsize of 64 is this creating problem?
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-64int
uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO',
optimize='-xO3 -xspace -xildoff',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Locally applied patches:
22667 The optree builder was looping when constructing the ops ...
22715 Upgrade to FileCache 1.04
22733 Missing copyright in the README.
22746 fix a coredump caused by rv2gv not fully converting a PV ...
22755 Fix 29149 - another UTF8 cache bug hit by substr.
22774 [perl #28938] split could leave an array without ...
22775 [perl #29127] scalar delete of empty slice returned garbage
22776 [perl #28986] perl -e "open m" crashes Perl
22777 add test for change #22776 ("open m" crashes Perl)
22778 add test for change #22746 ([perl #29102] Crash on assign ...
22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's ...
22796 [perl #29346] Double warning for int(undef) and abs(undef) ...
22818 BOM-marked and (BOMless) UTF-16 scripts not working
22823 [perl #29581] glob() misses a lot of matches
22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
22830 [perl #29637] Thread creation time is hypersensitive
22831 improve hashing algorithm for ptr tables in perl_clone: ...
22839 [perl #29790] Optimization busted: '@a = "b", sort @a' ...
22850 [PATCH] 'perl -v' fails if local_patches contains code snippets
22852 TEST needs to ignore SCM files
22886 Pod::Find should ignore SCM files and dirs
22888 Remove redundant %SIG assignments from FileCache
23006 [perl #30509] use encoding and "eq" cause memory leak
23074 Segfault using HTML::Entities
23106 Numeric comparison operators mustn't compare addresses of ...
23320 [perl #30066] Memory leak in nested shared data structures ...
23321 [perl #31459] Bug in read()
Built under solaris
Compiled at Jul 26 2005 05:26:55
@INC:
/usr/perl5/5.8.4/lib/sun4-solaris-64int
/usr/perl5/5.8.4/lib
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4
/usr/perl5/site_perl
/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4
/usr/perl5/vendor_perl
Other details:
file /usr/bin/perl
/usr/bin/perl: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
I tried installing DBI module using perlgcc also.
perlgcc Makefile.PL
make
make test
make install.
$uname -a
SunOS twirl 5.10 Generic_118822-25 sun4u sparc SUNW,Ultra-80
Please help me out.Try this guy's list, he maintain an archive of Solaris package.
http://www.ibiblio.org/pub/packages/solaris/sparc/html/creating.solaris.packages.html
Of course, if you can get directly from Sun will be better. -
Can't install thunar: perl-uri issue?
trying to install thunar, i get these errors:
root@homer:/home/sero # pacman -S thunar
:: exo-devel conflicts with exo-dev. Remove exo-dev? [Y/n]
Remove: exo-dev
Targets: perl-uri-1.35-1 exo-devel-0.3.1.10rc1-2 thunar-0.4.0rc1-1
Total Package Size: 1.7 MB
Proceed with upgrade? [Y/n]
:: Retrieving packages from extra...
perl-uri-1.35-1 [################] 100% 75K 73.1K/s 00:00:01
:: Retrieving packages from community...
exo-devel-0.3.1.10rc1-2 [################] 100% 635K 313.0K/s 00:00:02
thunar-0.4.0rc1-1 [################] 100% 1010K 314.3K/s 00:00:03
checking package integrity... done.
removing exo-dev... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
perl-uri: /usr/lib/perl5/site_perl/current/URI.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/Escape.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/Heuristic.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/QueryParam.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/Split.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/URL.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/WithBase.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_foreign.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_generic.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_ldap.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_login.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_query.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_segment.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_server.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/_userpass.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/data.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file/Base.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file/FAT.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file/Mac.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file/OS2.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file/QNX.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file/Unix.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/file/Win32.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/ftp.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/gopher.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/http.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/https.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/ldap.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/ldapi.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/ldaps.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/mailto.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/mms.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/news.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/nntp.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/pop.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/rlogin.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/rsync.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/rtsp.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/rtspu.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/sip.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/sips.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/snews.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/ssh.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/telnet.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/tn3270.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/urn.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/urn/isbn.pm: exists in filesystem
perl-uri: /usr/lib/perl5/site_perl/current/URI/urn/oid.pm: exists in filesystem
errors occurred, no packages were upgraded.
should i just delete those .pm files and try again? :?:i just moved URI to URI.sus (my standard thing for "suspend"), and URI.pm to URI.pm.sus, and it installed and seems to work. good to know i can just delete the old ones. i was not sure what package or perl program they might be associated with. thx
>>> edit:
root@homer:/usr/lib/perl5/site_perl/current/URI.sus # pacman -Qo *
No package owns Escape.pm
No package owns Heuristic.pm
No package owns QueryParam.pm
No package owns Split.pm
No package owns URL.pm
No package owns WithBase.pm
No package owns _foreign.pm
No package owns _generic.pm
No package owns _ldap.pm
No package owns _login.pm
No package owns _query.pm
No package owns _segment.pm
No package owns _server.pm
No package owns _userpass.pm
No package owns data.pm
No package owns file
No package owns file.pm
No package owns ftp.pm
No package owns gopher.pm
No package owns http.pm
No package owns https.pm
No package owns ldap.pm
No package owns ldapi.pm
No package owns ldaps.pm
No package owns mailto.pm
No package owns mms.pm
No package owns news.pm
No package owns nntp.pm
No package owns pop.pm
No package owns rlogin.pm
No package owns rsync.pm
No package owns rtsp.pm
No package owns rtspu.pm
No package owns sip.pm
No package owns sips.pm
No package owns snews.pm
No package owns ssh.pm
No package owns telnet.pm
No package owns tn3270.pm
No package owns urn
No package owns urn.pm
hmm, the paranoid part of me starts whispering: maybe you were hacked and someone installed some perl thing at some point? :shock:
Maybe you are looking for
-
How to force all characters in prompt text field will be in uppercase???
Hi everybody How to get that all characters in a prompt field of a Webi report will be compared in uppercase with the database field ?? Even if the user input text in lower case. this is due to the database all filelds are in uppercase, and avoid to
-
Period is locked for new data [Message 131-107]
Hi all, One of my client was faced this problem "Period is locked for new data [Message 131-107]" when they do Period-End-Closing for Year 2008 in SAP Business One 2007A Patch 42. Can anyone help me? Thank you. Best regards, danny
-
Save As PDF causing browsers crash
I've used Safari, Firefox (1.0.7 and 1.5), Internet Explorer, and Mozilla and every time I select "save as PDF" a webpage in the Print feature, it resulted in a browser crash. Every time. Have Apple addressed this persistently annoying bug already? T
-
How do i get back to my device home page
-
Table Compression in 9.2.0.1
Dear All, I need to use table compression. Could you please suggest some ideas from your practice? I tried to load 545 mb text file into database and compress it. the result of compression is not such significant I expected. I got 456 MB table. pctfr