Zhengrong,
I see that nobody has answered your question and I would suggest that the way you phrase the question is the cause. In essence, your email reads like this:
- you changed the path and something happens, but you don't describe
  what this something is
- you changed something but you don't remember what it is and you don't
  feel like finding out.

There is really nothing you can expect us to do with this little information. You need to be more cooperative if you expect us to help you.

Best
 W.


On 02/15/2012 12:02 PM, Zhengrong Cheng wrote:
Hey W,

Thank you for your reply. I changed the path to the library, but it
still could not work.

Actually, it worked a few days earlier  by simply typing in the terminal
"g++ step-2.cc", but later I want to set the path by using emacs, say,
f"emacs .bash_profile", which failed, and some other actions which I
could not remember. Now if I type  $PATH, it turns out to be:

bash:
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/zhengrongcheng/deal.II/lib:
*No such file or directory*

See the highlighted one? I don't know how to fix it. Maybe this is the
problem.

Please let me know if you can help with it. Thanks.

All the best

Z.Cheng

On Tue, Feb 14, 2012 at 8:58 AM, Wolfgang Bangerth
<[email protected] <mailto:[email protected]>> wrote:


        If I try to compile the example by directly make it in the
        folder of the
        examples, it works. But if I copy the example, say, step-1, to
        somewhere
        else, and type in the terminal "make", it does not work.


    Then you need to adjust the path to the deal.II library at the top
    of the Makefile.


        Moreover, if I try to compile it in the folder of examples
        itself, say,
        in the step-2 directory, by typing in the terminal, for example,
        " */g++
        step-2.cc -o step2/*", it says:

        */fatal error: deal.II/grid/trial.h: No such file or directory
                 compilation terminated./*/

        /
        Let alone compile it in in somewhere else outside deal.II
        directory in
        the terminal.


    This is why there is a makefile: because compiling projects with
    complicated dependencies can not be done using a simple command on
    the command line.

    Best
      W.

    _________________________________________________
    dealii mailing list
    http://poisson.dealii.org/__mailman/listinfo/dealii
    <http://poisson.dealii.org/mailman/listinfo/dealii>




--
------------------------------------------------------------------------
Wolfgang Bangerth               email:            [email protected]
                                www: http://www.math.tamu.edu/~bangerth/

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to