Hello,
I am trying to run Photorec on a Linux Mint 15 distro, but unfortunately I keep receiving a syntax error:
./photorec_static: 1: ./photorec_static: Syntax error: ")" unexpected
Does anyone have a clue as to what may be wrong, or what I could try more?
PS: I have downloaded/extracted both the 6.14 and the 7 archives, and tried running the photorec_static inside, yet to no avail
unable to start Photorec - Syntax error Topic is solved
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
- cgrenier
- Site Admin
- Posts: 5435
- Joined: 18 Feb 2012, 15:08
- Location: Le Perreux Sur Marne, France
- Contact:
Re: unable to start Photorec - Syntax error
Can you post the output of "uname -a" and "objdump -x photorec_static" ?
Re: unable to start Photorec - Syntax error
Hello,
Here are the outputs, as requested:
&
PS: I have managed to get it to work eventually.
Yesterday I was trying the x86_64 versions of Photorec (knowing that I have a 64-bit capable CPU) - I have also tried an i386 version, but something may have went wrong while unpacking it.
Today I've redownloaded the i386 version of Photorec to give it another try, and luckily it worked.
Here are the outputs, as requested:
Code: Select all
Linux i1750 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux
Code: Select all
photorec_static: file format elf32-i386
photorec_static
architecture: i386, flags 0x00000102:
EXEC_P, D_PAGED
start address 0x080481c0
Program Header:
LOAD off 0x00000000 vaddr 0x08048000 paddr 0x08048000 align 2**12
filesz 0x002a4286 memsz 0x002a4286 flags r-x
LOAD off 0x002a4288 vaddr 0x082ed288 paddr 0x082ed288 align 2**12
filesz 0x00004368 memsz 0x0002c078 flags rw-
NOTE off 0x000000d4 vaddr 0x080480d4 paddr 0x080480d4 align 2**2
filesz 0x00000044 memsz 0x00000044 flags r--
TLS off 0x002a4288 vaddr 0x082ed288 paddr 0x082ed288 align 2**2
filesz 0x00000018 memsz 0x00000050 flags r--
STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
filesz 0x00000000 memsz 0x00000000 flags rw-
Sections:
Idx Name Size VMA LMA File off Algn
0 .note.ABI-tag 00000020 080480d4 080480d4 000000d4 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .note.gnu.build-id 00000024 080480f4 080480f4 000000f4 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .rel.plt 00000028 08048118 08048118 00000118 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .init 00000030 08048140 08048140 00000140 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .plt 00000050 08048170 08048170 00000170 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
5 .text 00200a6c 080481c0 080481c0 000001c0 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
6 __libc_freeres_fn 000019d0 08248c30 08248c30 00200c30 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
7 __libc_thread_freeres_fn 000001fa 0824a600 0824a600 00202600 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
8 .fini 0000001c 0824a7fc 0824a7fc 002027fc 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
9 .rodata 00065f70 0824a820 0824a820 00202820 2**5
CONTENTS, ALLOC, LOAD, READONLY, DATA
10 __libc_subfreeres 00000048 082b0790 082b0790 00268790 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
11 __libc_atexit 00000004 082b07d8 082b07d8 002687d8 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
12 __libc_thread_subfreeres 00000008 082b07dc 082b07dc 002687dc 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
13 .stapsdt.base 00000001 082b07e4 082b07e4 002687e4 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
14 .eh_frame 0003b880 082b07e8 082b07e8 002687e8 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
15 .gcc_except_table 0000021e 082ec068 082ec068 002a4068 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
16 .tdata 00000018 082ed288 082ed288 002a4288 2**2
CONTENTS, ALLOC, LOAD, DATA, THREAD_LOCAL
17 .tbss 00000038 082ed2a0 082ed2a0 002a42a0 2**2
ALLOC, THREAD_LOCAL
18 .ctors 00000010 082ed2a0 082ed2a0 002a42a0 2**2
CONTENTS, ALLOC, LOAD, DATA
19 .dtors 00000010 082ed2b0 082ed2b0 002a42b0 2**2
CONTENTS, ALLOC, LOAD, DATA
20 .jcr 00000004 082ed2c0 082ed2c0 002a42c0 2**2
CONTENTS, ALLOC, LOAD, DATA
21 .data.rel.ro 00000730 082ed2c4 082ed2c4 002a42c4 2**2
CONTENTS, ALLOC, LOAD, DATA
22 .got 000005e4 082ed9f4 082ed9f4 002a49f4 2**2
CONTENTS, ALLOC, LOAD, DATA
23 .got.plt 00000020 082edfd8 082edfd8 002a4fd8 2**2
CONTENTS, ALLOC, LOAD, DATA
24 .data 000035f0 082ee000 082ee000 002a5000 2**5
CONTENTS, ALLOC, LOAD, DATA
25 .bss 00027cd4 082f1600 082f1600 002a85f0 2**5
ALLOC
26 __libc_freeres_ptrs 0000002c 083192d4 083192d4 002a85f0 2**2
ALLOC
27 .note.stapsdt 0000022c 00000000 00000000 002a85f0 2**2
CONTENTS, READONLY
28 .comment 00000058 00000000 00000000 002a881c 2**0
CONTENTS, READONLY
SYMBOL TABLE:
no symbols
Yesterday I was trying the x86_64 versions of Photorec (knowing that I have a 64-bit capable CPU) - I have also tried an i386 version, but something may have went wrong while unpacking it.
Today I've redownloaded the i386 version of Photorec to give it another try, and luckily it worked.