Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2011, 01:59 PM   #1
yogesh605
Junior Member
yogesh605 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2011
Location: Pune
Device: none
Unhappy Problem in Installing Calibre in ubuntu 11.10

Hi,

I downloaded Source code of Calibre and trying to install Calibre using

"python setup.py development"

and I am getting following error

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/yogesh/calibre/setup/__init__.py", line 163, in run_all
self.run_cmd(self, opts)
File "/home/yogesh/calibre/setup/__init__.py", line 156, in run_cmd
self.run_cmd(scmd, opts)
File "/home/yogesh/calibre/setup/__init__.py", line 159, in run_cmd
cmd.run(opts)
File "/home/yogesh/calibre/setup/extensions.py", line 298, in run
self.build(ext, dest)
File "/home/yogesh/calibre/setup/extensions.py", line 339, in build
self.check_call(cmd)
File "/home/yogesh/calibre/setup/extensions.py", line 373, in check_call
subprocess.check_call(*args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-pthread', '-I/usr/include/python2.7', '-c', '/home/yogesh/calibre/src/calibre/utils/speedup.c', '-o', '/home/yogesh/calibre/build/objects/speedup/speedup.o']' returned non-zero exit status 1

please help me to solve this error...
yogesh605 is offline   Reply With Quote
Old 12-12-2011, 04:37 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,048
Karma: 777825
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Is there a reason you are trying to compile from source? You do not need to do so in order to be able to do Calibre development - just follow the instructions in the User Guide for setting up a Calibre development environment to run from source (which is not the same as build from source). If you try to do build Calibre from source there are lots of dependencies to get right, whereas if you follow the User Guide process then this is all handled, but you can still amend any of the Calibre Python code.
itimpi is offline   Reply With Quote
Old 12-13-2011, 05:07 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,809
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by yogesh605 View Post
I downloaded Source code of Calibre and trying to install Calibre using
The title of this thread says Problem in installing calibre in Ubuntu 11.10. To install calibre on Ubuntu follow the Binary install instructions found here. Once installed if you wish to setup the calibre development environment follow the instructions here.

Good Luck.
DoctorOhh is offline   Reply With Quote
Old 12-13-2011, 11:08 PM   #4
yogesh605
Junior Member
yogesh605 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2011
Location: Pune
Device: none
Smile

Quote:
Originally Posted by itimpi View Post
Is there a reason you are trying to compile from source? You do not need to do so in order to be able to do Calibre development - just follow the instructions in the User Guide for setting up a Calibre development environment to run from source (which is not the same as build from source). If you try to do build Calibre from source there are lots of dependencies to get right, whereas if you follow the User Guide process then this is all handled, but you can still amend any of the Calibre Python code.
If I run command "bzr branch lp:calibre" what will be total size of code.............?

http://manual.calibre-ebook.com/deve...tting-the-code on this site it says that you can download it from source...........so I downloaded tarball and follow instruction which is given in Install file.

and also I want to ask if i download source code using "bzr branch lp:calibre" this command then it will handle all dependencies.......?
yogesh605 is offline   Reply With Quote
Old 12-14-2011, 02:58 AM   #5
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,048
Karma: 777825
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
If You read that link and follow the instructions for the recommended way of setting up a Linux development Environment based on the binary install and setting the CALIBRE_DEVELOP_FROM environment variable to point to the downloaded source then all dependencies are handled for you. If you decide to try and build everything by compiling from source then you have to sort out the dependencies.
itimpi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Problem installing on Ubuntu Linux bgcamroux Calibre 6 05-23-2012 02:30 AM
Problem in Installing Calibre in ubuntu 11.10 yogesh605 Introduce Yourself 4 12-12-2011 02:27 PM
Installing latest Calibre in Ubuntu 10.04 maitrayei Calibre 4 09-10-2010 02:48 AM
Problem Installing Calibre on EeePC 901 (Ubuntu Jaunty) andavane Calibre 4 11-08-2009 02:05 PM
Problems with installing Calibre, Ubuntu 7.10 Gusty AMD_64 with PRS-500 deedward9 Calibre 2 07-07-2008 08:22 PM


All times are GMT -4. The time now is 05:12 PM.


MobileRead.com is a privately owned, operated and funded community.