The problem is that your Python library has not been compiled with the
-fPIC flag. The best would be to rebuild your Python with shared libraries
using the --enable-shared option.

Johannes

On Wed, Jun 10, 2015 at 1:21 PM gowri shankar <[email protected]>
wrote:

> Dear Johannes,
>                         I tried installing as per the procedure.I created
> an virtualenv and installed FIAT, Instant, UFL and FFC.
> Then while installing dolfin i got an error..which was solved(searched for
> the error in internet- suite sparse_long was replaced by UFL_long). Now it
> moved upto 95% and i got the below error. I searched in internet and didn't
> find any understandable solution. Can you please help me out what is the
> error and remedy.
>
>
> (fenics)gowrishankar@schnell:~/Downloads/dolfin-1.5.0/build$ make
> install[ 95%] Built target dolfin
> [ 95%] Built target copy_swig_files
> Linking CXX shared module _mesh.so
> /usr/bin/ld: /opt/python2.7.9/lib/libpython2.7.a(abstract.o): relocation
> R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making
> a shared object; recompile with -fPIC
> /opt/python2.7.9/lib/libpython2.7.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [dolfin/swig/modules/mesh/_mesh.so] Error 1
> make[1]: *** [dolfin/swig/modules/mesh/CMakeFiles/_mesh.dir/all] Error 2
> make: *** [all] Error 2
>
>
> On Mon, Jun 8, 2015 at 10:05 AM, Johannes Ring <[email protected]> wrote:
>
>> The Python modules FIAT, Instant, UFL and FFC should be easy:
>>
>>   python setup.py install
>>
>> DOLFIN can be installed by running (from the DOLFIN source directory):
>>
>>   mkdir build
>>   cd build
>>   cmake ..
>>   make install
>>
>> The hardest part is usually to get all the dependencies installed
>> correctly, but this depends on your OS.
>>
>> How far did you get? Where did it stop?
>>
>> Johannes
>>
>> On Fri, Jun 5, 2015 at 5:47 PM gowri shankar <
>> [email protected]> wrote:
>>
>>> Dear all,
>>>              I want to install fenics in python virtualenv. I created
>>> virtualenv with desired python and activated the virtualenv. I am trying to
>>> install FENICS manually but i am facing lot of issues. Can anyone help me
>>> out with the steps for doing the same.
>>>
>>> --
>>> Regards,
>>> GOWRISHANKAR.T.H
>>> Contact No:08097539257
>>>  _______________________________________________
>>> fenics-support mailing list
>>> [email protected]
>>> http://fenicsproject.org/mailman/listinfo/fenics-support
>>>
>>
>
>
> --
> Regards,
> GOWRISHANKAR.T.H
> Contact No:08097539257
>  _______________________________________________
> fenics-support mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics-support
>
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to