while compiling xmlf90 i got error

Asked by manjeet

To install the library, just use the standard procedure:

    ./configure --prefix=/path/to/install/directory
    make
    make check
    make install

==========================================
 above commands worked but make install doesn't work, I got this error. Please rectify:

Making install in src
make[1]: Entering directory '/home/manjeet/Documents/xmlf90-1.5.4/src'
Making install in wxml
make[2]: Entering directory '/home/manjeet/Documents/xmlf90-1.5.4/src/wxml'
make[3]: Entering directory '/home/manjeet/Documents/xmlf90-1.5.4/src/wxml'
make[3]: Nothing to be done for 'install-exec-am'.
/usr/bin/install -c -d -m 755 /usr/local/include
/usr/bin/install -c -m 644 xmlf90_wxml.mod m_wxml_array_str.mod m_wxml_buffer.mod m_wxml_core.mod m_wxml_dictionary.mod m_wxml_elstack.mod m_wxml_error.mod m_wxml_escape.mod m_wxml_overloads.mod m_wxml_text.mod /usr/local/include
/usr/bin/install: cannot create regular file '/usr/local/include/xmlf90_wxml.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_array_str.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_buffer.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_core.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_dictionary.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_elstack.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_error.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_escape.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_overloads.mod': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/m_wxml_text.mod': Permission denied
Makefile:696: recipe for target 'install-data-local' failed
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory '/home/manjeet/Documents/xmlf90-1.5.4/src/wxml'
Makefile:581: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/manjeet/Documents/xmlf90-1.5.4/src/wxml'
Makefile:529: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/manjeet/Documents/xmlf90-1.5.4/src'
Makefile:528: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
xmlf90 Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

To install the files in the system are you need admin rights.
Depending on your operating system you have to replace the "make install" command by
sudo make install
or
su -c "make install"
or something similar.
(This is not specific for xmlf90, but valid for most self-compiled software that needs to be installed in the system area.)

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

type error: "...in the system area..."

Revision history for this message
manjeet (mkbhatia) said :
#3

Thanks Manfred Hampl, that solved my question.