http://calibre-ebook.com/download_linux
I have Python 2.6
When I do a source install, after running
wget -O-
http://status.calibre-ebook.com/dist/src | tar xvz
this is what I get, when I run sudo python setup.py install
rdh@rdh-desktop:~/calibre$ sudo python setup.py install
[sudo] password for rdh:
Dropping privileges to those of rdh: 1000
*
* Running build
*
####### Building extension sqlite_custom #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -pthread -I/usr/include/python2.6 -c /home/rdh/calibre/src/calibre/library/sqlite_custom.c -o /home/rdh/calibre/build/objects/sqlite_custom/sqlite_custom.o
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:2:20: error: Python.h: No such file or directory
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:7:24: error: sqlite3ext.h: No such file or directory
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:30: error: expected ')' before '*' token
/home/rdh/calibre/src/calibre/library/sqlite_custom.c: In function 'sort_concat_free':
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:77: error: 'SortConcatItem' has no member named 'val'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c: In function 'sort_concat_cmp':
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:83: error: 'SortConcatItem' has no member named 'index'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:83: error: 'SortConcatItem' has no member named 'index'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c: In function 'sort_concat_do_finalize':
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:91: error: 'SortConcatItem' has no member named 'length'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:100: error: 'SortConcatItem' has no member named 'length'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:101: warning: implicit declaration of function 'memcpy'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:101: warning: incompatible implicit declaration of built-in function 'memcpy'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:101: error: 'SortConcatItem' has no member named 'val'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:101: error: 'SortConcatItem' has no member named 'length'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:102: error: 'SortConcatItem' has no member named 'length'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c: At top level:
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:111: error: expected ')' before '*' token
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:127: error: expected ')' before '*' token
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:146: error: expected ')' before '*' token
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:153: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:158: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sqlite_custom_methods'
/home/rdh/calibre/src/calibre/library/sqlite_custom.c:167: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'initsqlite_custom'
Traceback (most recent call last):
File "setup.py", line 99, in <module>
sys.exit(main())
File "setup.py", line 85, in main
command.run_all(opts)
File "/home/rdh/calibre/setup/__init__.py", line 159, in run_all
self.run_cmd(self, opts)
File "/home/rdh/calibre/setup/__init__.py", line 152, in run_cmd
self.run_cmd(scmd, opts)
File "/home/rdh/calibre/setup/__init__.py", line 155, in run_cmd
cmd.run(opts)
File "/home/rdh/calibre/setup/extensions.py", line 276, in run
self.build(ext, dest)
File "/home/rdh/calibre/setup/extensions.py", line 317, in build
subprocess.check_call(cmd)
File "/usr/lib/python2.6/subprocess.py", line 498, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-pthread', '-I/usr/include/python2.6', '-c', '/home/rdh/calibre/src/calibre/library/sqlite_custom.c', '-o', '/home/rdh/calibre/build/objects/sqlite_custom/sqlite_custom.o']' returned non-zero exit status 1
I don't understand why I keep getting these errors.
What am I doing wrong.
Could someone help me, please?
Thanks in advance.
Addendum
I have tried doing the following (ie in Ubuntu):
Places > select the drive, which is called READER
Right-click on each of the folders and files > Properties > Permissions
All attempts to change the attributes to read and write are ignored
Similarly, when I do the following:
File browser > /media > right-click on READER > Properties > Permissions
All attempts to change the attributes to read and write are ignored