[petsc-users] Problem with using make
Barry Smith
bsmith at petsc.dev
Tue Nov 9 07:14:24 CST 2021
Please send configure.log and make.log to petsc-maint at mcs.anl.gov <mailto:petsc-maint at mcs.anl.gov> as well as all the output from trying to compiled ex5.c
> On Nov 9, 2021, at 12:33 AM, Yaswanth Narayana <ynarayan at buffalo.edu> wrote:
>
> I reinstalled PETSc but still getting the same error message.
>
> For another problem, I tried compiling ex5.c in tutorials(in snes) but got following error
>
> ex5.c:50:10: fatal error: petscdm.h: No such file or directory
> 50 | #include <petscdm.h>
> | ^~~~~~~~~~~
> compilation terminated.
>
> May I know what went wrong here?
>
> Thank you
>
> Yours sincerely
> Yaswanth
>
> From: Barry Smith <bsmith at petsc.dev>
> Sent: Tuesday, November 9, 2021 8:46 AM
> To: Yaswanth Narayana <ynarayan at buffalo.edu>
> Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>
> Subject: Re: [petsc-users] Problem with using make
>
>
> It seems you missed $ in front of $PETSC_DIR somewhere along the line. I suggest deleting the PETSc directory completely, recloning PETSc and follow the instructions at https://petsc.org/release/install/ <https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpetsc.org%2Frelease%2Finstall%2F&data=04%7C01%7Cynarayan%40buffalo.edu%7Cf537e61aa89741a55e6208d9a32f5c1b%7C96464a8af8ed40b199e25f6b50a20250%7C0%7C0%7C637720246512041469%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=r97s%2FeSUqnmxOTgqjn5RTD4ZegoH7pph%2F2wZLJkPCXo%3D&reserved=0> very careful to insure there are no typos or missing symbols.
>
> Barry
>
>
>> On Nov 8, 2021, at 9:51 PM, Yaswanth Narayana <ynarayan at buffalo.edu <mailto:ynarayan at buffalo.edu>> wrote:
>>
>> Hello
>>
>> My name is Yaswanth Narayana. I am using PETSc as part of my course HPC1. When trying to use make I am getting the following error. What should I do?
>>
>> makefile:8: /lib/petsc/conf/rules: No such file or directory
>> make: *** No rule to make target 'PETSC_DIR/lib/petsc/conf/rules'. Stop.
>>
>> I have tried changing the directory name and changed to the directory containing files 'rules' and 'variables' but still receiving the same error. Please help in this regard.
>>
>> Thank you
>>
>> Yours sincerely
>> Yaswanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211109/fcae39fa/attachment.html>
More information about the petsc-users
mailing list