Copyright Notice

Protected by Copyscape Duplicate Content Penalty Protection

Monday, March 22, 2010

Blog has moved to ----> mgw.dumatics.com


This post can now be read at HERE


Maitreya on Ankit's Desktop
First I must thank the Maitreya developers for coming up with such a wonderful Vedic Astrology software that works on Linux. I am not aware of any other vedic astrology software that works on Linux. Next I have to say that the install instructions on the site (and in the tarball) are not written with a newbie in mind and I had to struggle a bit before I could get it to work. The compiling of source code is really similar for I guess all source codes in general on linux and in particular in Ubuntu / Kubuntu but thing is when you are new to the platform and probably have almost all required software in repositories you rarely come across a situation where you need to compile from a source code to install your favourite software. Anyway so without wasting time in chit-chat, below is the step by step installation of Maitreya 6 on Ubuntu / Kubuntu:


  1. Download Maitreya 6 tarball.
  2. Prepare the system for installing
  3. Install wxWidgets 2.8 Dependencies
  4. Configure and Build
  5. Install
  6. Create a desktop icon

    1. Download Maitreya 6 tarball - From your browser goto http://maitreya.svn.sourceforge.net/viewvc/maitreya/ and click on the link "Download GNU tarball". This will download the maitreya.tar.gz file on your system.

    2. Prepare the system for installing - I used the instructions from ubuntu help documentation that can be found here. However, I have documented the step that I used in sequence to achieve the objective.
    1. Open the terminal.
    2. Type - sudo apt-get install build-essential checkinstall
    3. You will be asked for the password. Enter it.
    4. Once system completes the above instruction and is ready to take next instruction then Type: sudo apt-get install cvs subversion git-core mercurial
    5. Next type: sudo chown yourusername /usr/local/src Please note that here you need to put the your user name so don't just copy paste. So if say user name is "ankit" , you will type sudo chown ankit /usr/local/src
    6. Next Type: sudo chmod u+rwx /usr/local/src
    Now the system is prepared for installing.

    3. Install wxWidgets 2.8 Dependencies - As mentioned on Maitreya site, the software depends on wxWidgets 2.8 and corresponding packages must be installed. On the site itself is given the code that needs to copied onto the terminal to achieve this.
    1. Either from the site or from below select the text.
    2. sudo apt-get install libwxbase2.8-0 libwxbase2.8-dev libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx2.8-i18n
    3. Press Ctrl+C
    4. Goto Terminal window and press Ctrl+Shift+V or click on Edit from top menu and select Paste.
    5. Press enter.
    6. You may have to provide password.
    7. This should now install wxWidgets 2.8

      4. Configure and Build - There are few things that should be done before we start to configure the downloaded source code.
      • First goto the folder where maitreya.tar.gz file was downloaded in Step 1.
      • Now right click and select "Extract Archive To".
      • Select the location /usr/local/src
      • This will extract a folder named maiterya into the location /usr/local/src

        The content downloaded may change in future but at the time of writing this article it has two folders maitreya5 and maitreya6. All next steps will assume that folders name maitreya6 is present in your download but if not you will just have to replace with whatever folder is inside the extracted maitreya folder.
        • Goto your termincal window and type: cd /usr/local/src/maitreya/maitreya6/trunk
        • Now type ./configure.
        • If it gives some bash error like permission denied or file does not exist etc try sh ./confgure. This is what worked from me though everywhere instructions were to just use without sh.
        • It will take a bit of time but it should complete without any error and end with some instructions about using "make".
        • Now type make on terminal.
        • It should be done with no errors if all steps were followed correctly so far.

          5. Install - Again there were options around using sudo make install but the ubuntu help I have referred to (link above), suggested that checkinstall is better and it also creates a .deb file and I like the idea so that next time if I have to reinstall I don't need to do all this circus so I used the following and would recommend the same.
          • So in terminal window type sudo checkinstall.
          • When you run it it will ask some questions like doc-pak is not there, do you want to create?(Y) just type Y.
          • Then it shows some options and asks if you want to edit. I typed 2 to edit name and entered Maitreya.
          • It threw a warning that maitreya 6-1_i386 is not complaint with debian standard or something to that effect and I just pressed enter.
          • After this it was all fine and finally a message was shown telling a debian package has been created and to remove use dpkg ...

            The software should now be installed and you can test it by clicking the file named Maitreya6 at Location - /usr/local/src/maitreya/maitreya6/trunk/src/gui. However if you want to access it easily from desktop there is just one more step.

            6. Create a desktop icon - To create a desktop icon goto the folder /usr/local/src/maitreya/maitreya6/trunk and copy the file maitreya6.desktop and paste in on desktop.
            This is it you have now installed the Maitreya software !!!

            12 comments:

            1. I wish they had similar documentation in the read me or on website itself. Worked like charm. Thanks.

              ReplyDelete
            2. Thanks for your comments. I wish more people took a moment to put some positive words. It does feel good to see someone found this useful.

              ReplyDelete
            3. Hi Ankit,
              Thanks for document. I did as you said here and it worked. God bless you.
              Dinkar

              ReplyDelete
            4. Hi Dinkar,

              Thanks for letting me know...and for your wishes... it just feels extremely good that you found it usefu.

              Regards,
              Ankit.

              ReplyDelete
            5. hi Ankit

              thanks for the instructions i installed it on fedora. got it to work with some errors during 'make' (i dont know what they are but i ignored them ).ur post was useful

              thank u
              basa

              ReplyDelete
            6. Hi Basa,

              I haven't used fedora so thanks for your note, it will let other fedora users know that this works for them. I must add that on maitreya website a .deb file is now available to install on debian derivatives.

              Regards,
              Ankit.

              ReplyDelete
            7. Hi,

              Unfortunately for me, it gives an error

              pdffontmanager.cpp:49:37: error: fontconfig/fontconfig.h: No such file or directory

              and the package creation aborts. Any ideas?

              Thanks
              Abhi

              ReplyDelete
            8. Hello Abhi,

              Sorry for such a late response. I hope your problem is resolved by now but if not, you may find it useful to know that the author of the software has already created a deb package that you can download.

              Unfortunately, I don't know about the error you are getting so am sorry I will be unable to help.

              Regards,
              Ankit.

              ReplyDelete
            9. On Ubuntu 10.04 I am getting a configure: error:

              libfontconfig and development headers must be installed on your system.
              You can specify the path of an unsual fontconfig installation with theconfigure: error:
              libfontconfig and development headers must be installed on your system.
              You can specify the path of an unsual fontconfig installation with the
              configure option --with-libfontconfig-prefix=DIR (e.g. /usr/X11).


              configure option --with-libfontconfig-prefix=DIR (e.g. /usr/X11).


              while doing a configure, parently libfontconfig has been superceded by libfontconfig1 and my system has libfontconfig1-- any help to get this compiled

              ReplyDelete
            10. Hi Krishna,

              I am sorry for not replying any earlier...have been busy with gardening and chores that come with spring...:)

              Can I ask if you have tried the deb file that isnow available on maitreya site...because unless you absolutely need to make from the source code that is a surefire way to save you time

              About this libfontconfig, you can install files from archive of ubuntu...just give google search.i will put it as link once am on my computer...

              Hope this helps.

              -Ankit.

              ReplyDelete
            11. krishna, it needed development package of libfontconfig1-dev, verifyied on ubuntu 10.10

              sudo apt-get install libfontconfig1-dev

              ReplyDelete
            12. Thanks for sharing these pointers. Vedic astrology on Ubuntu would be perfect!

              ReplyDelete

            Search This Blog