fix adobe acrobat reader’s “expr: syntax error” message » javier arturo rodríguez » blog archive

fix adobe acrobat reader’s “expr: syntax error” message » javier arturo rodríguez » blog archive javier arturo rodríguez « use the radioshark 2 under linux (shark2.c) i’m a dad! »   fix adobe acrobat reader’s “expr: syntax error” message 20070601 17:39 by javier after i upgraded a few system libraries adobe acrobat stopped working and started to print an endless lethany of “expr: syntax error” messages. a quick google search later i found the fix detailed in at least a couple of places: find acroread (it’s a shell script, probably in /usr/local/bin or under whichever-directoy-you-specified-during-installation/bin) and apply this patch: — acroread.old        2007-06-01 18:18:49.000000000 -0500 +++ acroread    2007-06-01 18:20:57.000000000 -0500 @@ -415,7 +415,7 @@             return 1          fi -               echo $mfile| sed ’s/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g’ +               echo $mfile| sed ’s/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g’          return 0      fi or just fire up vi(1) and add an asterisk after the second [0-9] block in line 418. even tough the problem has been solved, now this is kind of moot. see, i’d rather use acroread than xpdf any day because its navigation is a lot more natural than xpdf’s, and just to be honest xpdf is showing its age and is just plain ugly. however adobe is starting to piss me off with its inclusion of the yahoo toolbar in acrobat reader and its pitiful insistence to install n upgrades every single freaking time i open a pdf file. so i’ve started to use kpdf instead which feels a bit slower but starts up in a blink, looks a lot cleaner, doesn’t include spyware and displays the pdfs i’ve fed to it with decent antialiasing. $ echo “alias acroread=kpdf” >> $home/.bashrc so -just to be clear- in my opinion the best way to fix this problem is to stop using acroread and just use something else. adobe: thank you for screwing up one of your nicer products, and see you never. this entry was posted on friday, june 1st, 2007 at 17:39 and is filed under general. you can follow any responses to this entry through the rss 2.0 feed. you can leave a response, or trackback from your own site. 52 responses to “fix adobe acrobat reader’s “expr: syntax error” message” julian dunn’s journal » fixing adobe acrobat reader’s “expr: syntax error” message says: june 7th, 2007 at 20:07 […] fix adobe acrobat reader’s “expr: syntax error” message […] jody says: june 9th, 2007 at 9:14 thanks — your fix saved me from a lot of useless reinstallations :) redeyeblind says: june 11th, 2007 at 2:00 dude! i’ve been installing fedora 7 - added adobe7 - and i have a major headache for it! the asterisk thing works like a champ! you rock!!!!!!!!!! you rock!!!!!!!!!! you rock!!!!!!!!!! thanks bigtime! -reb tom curl says: june 14th, 2007 at 16:49 a fine job javier! thanks, tom acknerss says: june 16th, 2007 at 20:38 so thank you!!! i really tried to do a lot of things trying to fix this error. but the solution was pretty easy, just i add an “*” in the shell script (in my case it is in /usr/local/adobe/acrobat7.0/bin) and all my problems disappear. thanks again! abner. amir says: june 19th, 2007 at 4:07 why aren’t they republishing a working version ?! david says: june 25th, 2007 at 22:22 you rock!!!!!! what is the matter with adobe for letting a bug like that out the door????? krasny says: june 26th, 2007 at 7:45 thanks! adobe products on linux sucks, other succesful case. sam says: july 2nd, 2007 at 0:21 you rock!! we switched to kpdf already! but his is good. you rock!! giovanni says: july 2nd, 2007 at 2:14 please help me i followed your suggestion and now when type acroread kpdf appear! i unistalled both acroread and kpdf but the problem is keeping across thank in advace fot the help javier says: july 2nd, 2007 at 4:01 giovanni: just edit your $home/.bashrc file and zap the line containing “alias acroread=kpdf”. that one replaces all acroread invocations with kpdf. as for myself… i’ll stick with kpdf for now ;-) femo says: july 3rd, 2007 at 5:49 thanks for this fix. it was very helpful domtor0 says: july 5th, 2007 at 8:40 jolie boulot!!! (in french dans le texte;) andy h. says: july 6th, 2007 at 6:16 thank you very much. your points on adobe reader are well taken and i will have to check out kpdf in the near future. for now, thanks for getting this working. tom brown says: july 8th, 2007 at 9:17 wow!! i was tearing my hair out. many, many thanks javier. will look at kpdf thanks again john smith says: july 9th, 2007 at 13:09 thanks for that. ace tip, worked straight away. why can’t adobe just fix it themselves. higorc says: july 13th, 2007 at 19:15 thanks from brazil dude benjamin says: july 16th, 2007 at 18:11 thanks from germany. the asterisk solved my problem. great work. indro says: july 17th, 2007 at 3:06 thanks for the acroread fix. tubaplayer says: july 23rd, 2007 at 5:08 and another satisfied customer :) thanks!! david says: july 27th, 2007 at 20:20 wow! this is awesome, and worked! i also (like john smith) can’t believe they missed this. especially when it’s more or less correct on a previous line. express block » fix adobe acrobat reader’s “expr: syntax error” message says: july 28th, 2007 at 4:22 […] i recently installed adobe’s acrobat reader on xubuntu and ended up getting stuck in a slew of “expr: syntax error” messages. simple fix go here […] ahmed khan says: july 29th, 2007 at 12:33 thanks, saved my day. i have googled with the following phrase and this page was the first one. acrobat reader linux “expr: syntax error” william says: july 30th, 2007 at 16:12 javier, great fix. but, don’t sell xpdf to short. i recently upgraded to xpdf-3.02 and i find that it renders better than kpdf and is faster than either acroread or kpdf. cheers, william david heller says: july 30th, 2007 at 16:18 thanks, great tip. no mention of this on adobe’s site anywhere. shine says: july 31st, 2007 at 5:38 great! very useful tip. shine antenore says: august 2nd, 2007 at 1:47 hi and thanks a lot!!! i put in place your modification and it was working till yesterday. i’ve updated the libgtk and maybe the regexpr it’s not right anymore. could you please give me an hint to fix it again? these are the installed libraries: ls -la /usr/lib/libgtk-x11-2.0.* -rw-r–r– 1 root root 828 jul 27 13:19 /usr/lib/libgtk-x11-2.0.la lrwxrwxrwx 1 root root 26 jul 30 08:50 /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.1106.0 lrwxrwxrwx 1 root root 26 jul 30 07:38 /usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.1106.0 -rwxr-xr-x 1 root root 3972072 jul 27 13:19 /usr/lib/libgtk-x11-2.0.so.0.1106.0 thanks, thanks, thanks again. wizard says: august 3rd, 2007 at 7:25 you’re a great! juan says: august 6th, 2007 at 11:32 thank you very much! well done! i’ve had problems with gentoo 2007.0 and acrobat 7 and the asterisk was the key. aaron says: august 7th, 2007 at 22:27 wow. it’s already august, and still they haven’t published a fix. thanks for the post!! i also agree about the stupid yahoo bar. but, i just went to view -> toolbars and removed the “search the internet” toolbar. wasn’t a big deal to me. kudos to your post! aaron greg says: august 8th, 2007 at 3:47 thanks once more! justin says: august 8th, 2007 at 9:53 nice that your site came up first because it solved my problem immediately. thanx alot. baja2k2 says: august 8th, 2007 at 11:47 excellent quick fix! now acrobat work well on my slackware 12! thanks! just vecht says: august 9th, 2007 at 13:24 thank so very much! that one asterix only, unbelievable. i would never have found that one myself. it worked the same in the dutch version, similar error i guess (i am a dutchman). i run slackware 12. i modified the script with kate, starting it up in a terminal with kdesu kate to give me root rights. i am no good with vi .. just ranjith says: august 10th, 2007 at 1:23 thanks i got worked …fine on acroread thanks lot phillistine says: august 13th, 2007 at 18:42 dude, this is cool. quick fix within seconds. adobe can look like a professional organization with your help, and of course google’s too (how else would i have found you ?) gus heinrich says: august 14th, 2007 at 0:29 javier, well done. thank you a lot dude. neo says: august 17th, 2007 at 11:33 hi another easy fix … this will fix firefox error also … http://www.tecpages.com/expr-syntax-error-adobe-acrobat-reader-acroread-and-mozilla-firefox-mozilla-firefox/ thanks marc says: august 18th, 2007 at 20:41 good job. thanks alot terry says: august 19th, 2007 at 19:55 and another thank you. my adobe reader was working fine until today. i’ve just “upgraded” some packages and it would not launch. all it took was an asterisk. is this adobe’s fault? and how did you work out the fix? it’s still the reader i prefer to use. i usually have several documents open at a time and i really like having just one window. hamster says: august 22nd, 2007 at 5:16 hi, thank you for this fix. hm, adobe must be aware of this problem and they are still distribute such buggy version… ;( schedar says: august 22nd, 2007 at 9:07 hi! great work, it was very useful, you saved me lot of time. thanks a lot! libgtk-x11, acroread and firefox « lpsolit’s blog (original, isn’t it?) says: august 24th, 2007 at 9:42 […] released some updates for libgtk-x11 a few days ago and acroread was now failing. fortunately, the fix is trivial and acroread (and firefox using the adobe plugin) is working fine again! so if you are running […] arseniy says: august 24th, 2007 at 11:15 thanks a lot! good job! jaco’s point of view. » blog archive » fix adobe acrobat reader’s “expr: syntax error” message says: august 28th, 2007 at 2:16 […] acroread from the console and i received the error. after some searching my first hit lead me to a website who had the simpelest patch for it. just replace the line on 418 echo $mfile| sed […] kolin says: august 28th, 2007 at 7:04 thanks !!!!! saved my neck and hours of reinstallation ==k tannenbaum says: august 30th, 2007 at 4:27 cool!! prem says: september 4th, 2007 at 4:06 excellent. thanks a lot yht says: september 5th, 2007 at 22:43 thank you very very much! –yht giovanni says: september 7th, 2007 at 12:09 i did differently: this is what i suggest 1) open firefox 2) click preferences 3) click content 4) do nothing (i typed an extra line by mistake) 5) click file types, how …. (ie. the last clickable button) 6) select adobe reader (ie deselect plugin..) 6) pretend that you are happy (ie say ok) 7) open a pdf file over internet (anywhere it did not work so far) 8) you are asked open or save: before saying open, click the button mandating to use this program (ie acroread) to open always such files 9) open the file and that’s it (it will always work, ie until the next upgrading at least. yasuo says: september 11th, 2007 at 11:04 hi all! downloaded 7.0.9, and recognized, that adobe distributes the package with acroread script patched as you mentioned above. and the script does not work. so i had to investigate further. the solution is simple. you have to delete all lines of function check_gtk_version_and_set_lib_path() between the opening and closing brackets: gtk_version_and_set_lib_path() { export ld_library_path = $ld_library_path return 1 } it works for me, without any annoying error or warning messages. hope this helps. good luck, yasuo adobe reader expr:syntax error endless warning « wishes in the night says: october 24th, 2007 at 1:26 […] one i liked more, was at javier arturo rodríguez weblog and is mirrored in here for security (and easy access and remembering) […] leave a reply name (required) mail (will not be published) (required) website search possibly related μhowto:get over subversion’s db_version_mismatch errormexican elections 20060704 @ 1600hrsmexican elections 2006 @ 20:00hrscountmitigate the .wmf vulnerability with exim, squid and squidguard urbania now reading planned books: no me cogereis vivo by arturo perez-reverte the colossal book of mathematics: classic puzzles, paradoxes, and problems by martin gardner ticktock by dean koontz current books: microserfs by douglas coupland hellboy: casos insolitos/ hellboy: odd jobs (hellboy)/ spanish edition by mike mignola perl best practices by damian conway veronika decides to die: a novel of redemption (p.s.) by paulo coelho the happiest baby on the block by harvey karp recent books: cell: a novel by stephen king darkfall by dean koontz overclocked: stories of the future present by cory doctorow darwin\’s children by greg bear con animo de ofender by arturo perez-reverte view full library pages itesm artwork currículum vitae linux debian gnu/linux on dell d620 papers pgp key thawte web of trust tivo-in-mexico howto wordpress wpg2 widgets friends & family alberto alcocer alejandra montemayor alicia ramírez benji gonzález carlos alberto carlos de la guardia elena guadalupe enrique mandujano jordi fernández mauricio angulo neat maraton alcatel perl apache::selectlanguage 2.0 code snippets personal amazon wishlist resume tivo i love my tivo! tivo in mexico howto websites i like digg.com engadget freshmeat.net gizmodo slashdot wikipedia archives october 2007 august 2007 july 2007 june 2007 may 2007 april 2007 february 2007 january 2007 december 2006 october 2006 september 2006 august 2006 july 2006 june 2006 march 2006 february 2006 january 2006 december 2005 october 2005 august 2005 july 2005 june 2005 may 2005 march 2005 february 2005 november 2004 september 2004 august 2004 july 2004 january 2004 categories blog (5) wordpress (3) code (14) perl (10) php (2) python (1) sh (2) gadgets (20) dell d620 (6) ipod (3) thinkpad r50 (4) tivo (3) treo 600 (3) treo 650 (1) general (79) hack! (11) linux (13) debian (2) mexico (8) living (2) politics (5) review (5) books (2) games (1) hardware (1) tv (1) security (2) sysadmin (14) tech (15) advertisements meta badges! 38 queries. 0.820s  $revision: 1.6 $  

Acceuil

suivante

fix adobe acrobat reader’s “expr: syntax error” message » javier arturo rodríguez » blog archive   I Fix Computers, Inc   New Vista fix packs provide updates promised for SP1 All about ...  Joomla! Extensions Directory - Ultimate PNG Fix Plugin (for IE up ...  votre porte-monnaie euros  Daylight Saving fix for Windows 2000,XP, 2003, and NT (DST Patch/Fix)  Find A Fix Auto Body Repair Shop. List Of All Auto Collision Shops ...  slip tena fix :: tena, incontinence, matriel mdical bas prix  Fix-Masseau Pierre  Fix Ellinger Patricia  Membre : Crazy Fix  ThoughtWorks, Inc. lance le premier moteur FIX C++ ouvert  No Easy IT Fix for the IRS - CIO.com - Business Technology Leadership  Fix bug report!! [Archive] - The Saga of Ryzom  Download AIM Fix 1.6.917.1023 - AIM Fix was created to remove all ...  Fix Blogger Sitemap XML Warnings Inside Google Webmaster at ...  Excel 2007 Calculation Fix Weighs a Whooping 32 MB at Digital ...  MSN Fix .... besoin de renseignements URGENT  Fix Problems With Copying Large Files in Windows Vista :: the How ...  Fix Mascara  Fix Me!  Trucs & Tuyaux - Bouteille avec des perles sur Fix-Tape  A JavaScript Fix For Text That's Too Tiny  EAZ-FIX, Instantly undo your PC problems  Alpinisme -- Petites annonces - Re: [VDS] Fixations rando SECURA ...  video-gratuit : Clip Coldplay - Fix You (Live Video) video Musique ...  Installation Matrix Infinity + SubZero Fix [ Ps2/PsTwo install ...  Fix Your Digital Photos : CNET Online Courses - Tips, Tricks, and ...  Congress looks for price fix  Acheter Maillot de bain Tribord Tr 100 fix foulard lys ro  TOTAL : JEU du FIX MARDI 6 /11 / 2007  Fix PST file  CONTES POPULAIRES DU MAROC, une oeuvre de FIX PHILIPPE, propose ...  Fix You - Blog lemeltingpotdeclytia - Un peu comme un journal ...  Neowin.net - Apple Releases Fix for iMac Freeze  :: SUSHI FIX RESTAURANTS :: WELCOME  fix from FOLDOC  Pixoo.us Will Fix Your Hair (Or Anything Else You Dislike in Your ...  6 Tri-Fix & 8 Punaises, 4x3.5cm, LOT DE 4  How to fix an iPod that wont boot, revisited  AFP548 - Fix for DST time change on 10.3 and 10.2  Technology Review: The Patent Office's Fix  Patient Fix Thyself - Forbes.com  FIX Kallio  Genius Wireless G-12 Twin (Fix incompatible issue in Czech Windows ...  PEN-FIX, matriel pour personnel hospitalier  Apple Posts Fix For Leopard 'Blue Screen Of Death' -- Apple ...  フィックス/CM制作・映像制作プロダクション/FIX.co.,ltd.  FIX・MIX・MAX!-現代アートのフロントライン-  Slapyo.com Blog Archive WordPress Plugin: Fix Database  Histoire des membres de l'Acadmie franoise, morts depuis 1700 ... - Rsultats Google Recherche de Livres  WinSock XP Fix - fix XP internet connectivity download, reviewed ...  The power of the positive woman - Rsultats Google Recherche de Livres  Fix de la version 2.0.0 RC5 :: Fire Soft Board  The Fix - Rsultats Google Recherche de Livres  fix-finden.de  Babes at Babes Fix - Your daily fix of babes - babe photos, babe ...  Bondage Fix: get your bondage bdsm fix here!  Titfix.com - Get Your Daily Fix of Big Tits!  RipollP => cheville SPIT FIX 2 8x70/20  Aural Fix Communique Online