Hi Paul,

I'm not familiar with CentOS so getting Mayan installed on CentOS was an 
proving impossible without the proper knowledge about the distribution, so 
thanks a lot for this!  I will test this locally and hopefully be able to 
add CentOS support to the install fabfile.  Thanks,

--Roberto

On Tuesday, October 30, 2012 3:19:17 PM UTC-4, Paul Harrison wrote:
>
> Greetings Roberto;
>
> I got to the point where pip install completes. When it's all done, I get 
> the message:
>
> Successfully installed Django django-pagination django-taggit django-mptt 
> python-magic slate ghostscript pdfminer APScheduler Pillow cssmin 
> django-compressor django-sendfile djangorestframework South python-hkp 
> requests pbs psutil GitPython python-gnupg distribute django-appconf 
> certifi oauthlib chardet gitdb rsa async smmap pyasn1
>
> Cleaning up...
>
> Since cPanel and CentOS require the system Python to be version 4.2, I  
> installed Python 2.7 in the /opt directory.
> There are lots of good instruction on doing that (and installing mod_wsgi 
> to work with cPanel) here: 
> http://birdhouse.org/blog/2011/08/11/building-mod_wsgi-easyapache-for-whmcpanel/
> Although the above article talks about building Python in /usr/local, I 
> built it in /opt to keep it more separate from the system python. (I tried 
> builfing it in /usr/local
> and broke the system python)
> After installation, "python -V" returns Python 2.4.3; "python27 -V" 
> returns Python 2.7
>
> Next, I installed Teseract OCR from source. First the dependencies;
>
>    1. 
>       
>       'libjpeg-devel' yum install libjpeg-devel
>       2. 
>       
>       'libpng-devel' yum install libpng-devel
>       3. 
>       
>       'libtiff-devel' yum install libtiff-devel
>       4. 
>       
>       'zlib-devel' yum install zlib-devel
>       5. 'Leptonica' from source
>          1. 
>          
>          cd /opt/src
>          2. 
>          
>          wget http://www.leptonica.com/source/leptonlib-1.67.tar.gz
>          3. 
>          
>          tar -xvzf leptonlib-1.6.7
>          4. 
>          
>          cd leptonlib-1.6.7
>          5. 
>          
>          ./configure
>          6. 
>          
>          make
>          7. 
>          
>          make install
>          6. Then Tesseract OCR from source
>       1. 
>          
>          wget 
>          http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz 
>          2. 
>          
>          tar -xvzf tesseract-3.00.tar.gz
>          3. 
>          
>          cd tesseract-3.00
>          4. 
>          
>          ./configure
>          5. 
>          
>          make
>          6. 
>          
>          make install
>          7. 
>          
>          cd /usr/local/share/tessdata
>          8. 
>          
>          wget http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz
>          9. 
>          
>          gunzip eng.traineddata.gz
>          
> Then build Mayan:
>
> 1. cd /opt
>
> 2. mkdir Mayan
>
> 3. cd Mayan
>
> 4. Download vurtualenv in the directory (I think this is important, these 
> files have nothing to do with the system python)
>
> wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py
>
> 5. Setup the virtual environment with the custom (v 2.7) python
>
> python27 virtualenv.py –no-site-packages mayan
>
> 6. cd mayan
>
> 7. I downloaded the Mayan archive to my desktop, then uploaded it to the 
> server
>
> download the zip from: github.com/rosarior/mayan 
>
> upload it to: /opt/Mayan/mayan
>
> 9. Expand it
>
> unzip name-of-archive.zip
>
> 10. rename it 
>
>      mv name-of-archive medms
>
> 11. Activate the virtualenv (notice only 1 dot before /bin/activate)
>
>      source ./bin/activate
>
> 12. I had to edit the production.txt file.
>
>         All of the git clone operations (I think there were 3) required 
> changing
>
>         "e- git://github.com" to "e- git+http://github.com"; 
>
>         because I didn't want to open whatever port git uses.
>
>
> 13. ./bin/pip install -r medms/requirements/production.txt
>
>
> At the end, I got the "Successfully installed ..." message.
>
> I'm not to clear on how to run this via Apache/mod_wsgi (I have not tried 
> yet), but I did build the dependencies successfully.
>
> Regards
>
>
>
> On Thursday, October 4, 2012 11:35:26 AM UTC-4, Roberto Rosario wrote:
>>
>> Hi Paul,
>>
>> Thanks for the info.  I'm still trying to find an OS package-centric way 
>> to install Mayan on CentOS, that doesn't involve manual installation of 
>> files.  Adding add automated install for CentOS to the fabric file is a 
>> commonly requested feature.  So far only Fedora, Ubuntu and Debian provide 
>> all the basic software packaged for a clean, maintanble install.
>>
>> --Roberto
>>  
>>
>> On Tuesday, October 2, 2012 5:08:02 PM UTC-4, Paul Harrison wrote:
>>>
>>> Greetings Robert;
>>>
>>> I'm trying to get Mayan running on a CentOS based cPanel vps from 
>>> Hostgator. The vps needs python 2.4, so I have python 2.7 installed in the 
>>> opt directory.
>>>
>>> I didn't "install" virtualenv, I just downloaded the file into the opt 
>>> directory from here:
>>> https://raw.github.com/pypa/virtualenv/master/virtualenv.py
>>> I figured that was the cleanest, least intrusive way to use it on the 
>>> vps.
>>>
>>> To use virtualenv, I enter python2.7 virtualenv.py ... But I still get 
>>> the error where it tries to use distribute instead of setuptools.
>>>
>>> Dairon, how did you get it running on CentOS? Did you ever get the 
>>> distribute/setuptools error that Robert and I got?
>>>
>>> I'm using CentOS 5 (64 bit)
>>>
>>> Regards,
>>> Paul
>>>
>>>
>>> On Wednesday, September 26, 2012 11:13:42 AM UTC-4, Roberto Rosario 
>>> wrote:
>>>>
>>>> Hi Dairon,
>>>>
>>>> I'm getting hit with pip trying to update the distribute package that 
>>>> setuptools is installing by default.  I think this is because I'm 
>>>> installing virtualenv from easy_install as I haven't been able to find a 
>>>> yum package for virtualenv.  How do you get virtualenv installed?
>>>>
>>>> thanks,
>>>>
>>>> --Robert
>>>>
>>>> On Wednesday, September 26, 2012 11:01:57 AM UTC-4, Dairon Medina Caro 
>>>> wrote:
>>>>>
>>>>> Hi i have it running on CentOS 6.2 with virtualenv
>>>>>
>>>>> 2012/9/26 Roberto Rosario <[email protected]>
>>>>>
>>>>>> Hi Paul,
>>>>>>
>>>>>> if you get it working, please post here how.  I would like to add 
>>>>>> CentOS install support to the fabric file, thanks!
>>>>>>
>>>>>> --Roberto
>>>>>>
>>>>>> On Monday, September 24, 2012 9:51:32 PM UTC-4, Paul Harrison wrote:
>>>>>>>
>>>>>>> Greetings mayan_firsttime;
>>>>>>>
>>>>>>> I am having the same problem. How did you get mayan running on 
>>>>>>> CentOS?
>>>>>>>
>>>>>>> Thanks in advance!
>>>>>>>
>>>>>>> On Wednesday, September 12, 2012 10:12:05 PM UTC-4, mayan_firsttime 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Thank you for the repyl but i manage to get mayan installed. now 
>>>>>>>> thing is subgroup.why this feature is not implemented.could you 
>>>>>>>> include 
>>>>>>>> this on the next update.
>>>>>>>>
>>>>>>>  -- 
>>>>>>  
>>>>>>  
>>>>>>  
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> *Dairon Medina Caro
>>>>> Software Developer*
>>>>> *email:* [email protected]
>>>>> *weblog:* http://codeadict.org
>>>>> *mobile:* *(+593)*-84669052
>>>>> http://linkedin.com/in/codeadict
>>>>> @codeadict
>>>>>
>>>>>

-- 



Reply via email to