Thanks Maarten! Somewhere in the Anaconda docs is stated that bash is a
hard requirement: conda doesn't work with other shells.

In theory you can try and build the packages yourself installing
conda-build and using my conda-recipes fork, the juanlu001/fenics branch.

https <https://github.com/juanlu001/conda-recipes>://
<https://github.com/juanlu001/conda-recipes>github.com
<https://github.com/juanlu001/conda-recipes>/juanlu001/conda-recipes
<https://github.com/juanlu001/conda-recipes>

For instance, to rebuild ffc:

$ cd conda-recipes
$ git checkout juanlu001/fenics
$ conda build ffc --python 27

It may complain that instant, scientificpython and such are not built or do
not exist. You can either rebuild those for your system or try my uploaded
versions, doing this in the first place:

$ conda config --add channels juanlu001

If you try and fail I can inspect what is the problem with the recipes and
try to polish them so they work in a variety of systems. I can install a
virtual CentOS 6.6 myself but not before this Sunday.

If you don't have admin privileges some requirements may be impossible to
meet, specially if you try to rebuild boost. In
https://binstar.org/juanlu001/boost I listed the packages needed to build
it, but these need to come from your native package manager (e.g. libicu,
libbz2) since they are not available from conda. As a last resort, you can
try

$ conda install binstar
$ binstar search -t conda libicu

But I am away from my computer now so I cannot check this command myself.

Best regards,

Juan Luis
'source activate fenics27' worked as soon as I switched from the csh shell
to bash.

I did an update with 'conda update conda' and 'conda update anaconda'
before trying again. This time the installer ran without any problems.

Trying 'import dolfin' now returns:

---------------------------------------------------
> DOLFIN runtime dependency is not met.
> Install the following python module: 'ffc'
> and make sure its location is listed in PYTHONPATH.
> ---------------------------------------------------
>

ffc installed just fine along with the other packages, and it is located in
PYTHONPATH. Simply trying 'ffc' in the shell reveals this error:

ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by
> <INSTALL_PATH>/anaconda/lib/python2.7/site-packages/ufc/_ufc.so)
>

I doubt this is related to conda. However, being stuck to GLIBC_2.12 on
CentOS and without admin rights, I am not sure if there is anything I can
further do?

Thanks,

Maarten

On 12 January 2015 at 17:06, Juan Luis Cano <[email protected]> wrote:

> Hello Maarten, thanks for trying it out! Failing that early must have been
> very unimpressive though :)
>
> The 'source activate fenics27' should definitely work, assuming you are in
> Linux and that the paths are correct. Would you please post to some
> pastebin the output of 'conda info --all'?
>
> Also, I am not sure about the other error but maybe some requirements are
> not met. I only compiled the package for python 2.7 and Linux 64bit, so you
> need to activate your environment and to be in this platform.
>
> Juan Luis
> On Jan 12, 2015 2:26 PM, "Maarten" <[email protected]> wrote:
>
>> Hello,
>>
>> Since we use the Anaconda Python distribution here, being able to install
>> FEniCS using conda would be a great help!
>> I'll just post whatever error I encounter, starting with:
>>
>> conda install fenics --channel juanlu001
>>> Error: No packages found matching: dolfin ==1.4
>>>
>>
>> That is, only running the third command. When I also run the first two, I
>> get
>>
>> source activate fenics27
>>> activate: No such file or directory.
>>>
>>
>> Any further help would be much appreciated,
>>
>> Maarten
>>
>> On 9 January 2015 at 20:13, Juan Luis Cano <[email protected]> wrote:
>>
>>> Hello,
>>>>
>>>> I would very much like to try out FEniCS, but installing is not as easy
>>>> as
>>>> hoped. I am on a CentOS 6.6 system without root-rights, and tried to use
>>>> the dorsal script to install locally. I copied the 'local.platform' file
>>>> for 'Red Hat Enterprise Linux 6/CentOS 6/Scientific Linux 6' and
>>>> encountered following problems when compiling dolfin:
>>>>
>>>
>>> Hello,
>>>
>>> If you are willing to use the Anaconda Python distribution (or their
>>> Miniconda installer), there is another experiment you can try:
>>>
>>> $ conda create --name fenics27 python=2.7
>>> $ source activate fenics27
>>> (fenics27) $ conda install fenics --channel juanlu001
>>>
>>> See http://fenicsproject.org/pipermail/fenics-support/2015-
>>> January/001090.html for recent discussion about this in the mailing
>>> list. I am willing to help you make it work on CentOS.
>>>
>>> Regards,
>>>
>>> Juan Luis Cano
>>> _______________________________________________
>>> 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