- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to install a software package SEPRAN, which is actually a collection of subroutines written in Fortran. I have installed the Fortran 10.1 compiler in my Windows based machine.
The SEPRAN library is created by the following:
lib ini060.obj
ren ini060.lib sepran.lib
Originally, the SEPRAN package was developed using Fortran 8. I have replaced the above lines with:
xilink -lib -out:ini060.lib ini060.obj
ren ini060.lib sepran.lib
Creating the ini060.lib fails with the following warning:
xilib: executing 'lib'
xilib: error spawn_errno_ENOENT: could not find 'lib'
Can anyone suggest me how to solve this problem? (please note that I am a reasonable dummy with this kind of stuff)
Thanks,
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would have used "xilib" rather than "xilink -lib" but both work.
What do you see for:
lib /?
How did you start your command prompt session?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
First, I run this one in a dos box (as you see, I have replaced the Fortran 8 call for the ifortvars command):
@echo off
echo Init Sepran Window
rem call "C:Program FilesMicrosoft Visual StudioDf98bindfvars.bat"
call "C:Program FilesIntelCompilerFortran10.1.011IA32Binifortvars.bat"
call "C:SepranBinInitsep.bat"
echo Sepran Environment Ready..
The initsep.bat reads:
SET SPHOME=C:sepran
SET SPDISK=C:
set SPINCLUDE=%SPHOME%
SET INCLUDE=%SPINCLUDE%;%INCLUDE%
SET PATH=%SPHOME%bin;%PATH%
Then I run the following bat file:
@echo off
echo.
echo purpose: install sepran
cd %SPHOME%sourcealg
call %SPHOME%bincompile *.for
rem lib ini060.obj -> I have replace the Fortran 8 command lib by xilib
rem ren ini060.lib sepran.lib
xilib -out:sepran.lib ini060.obj
rem xilink -lib -out:ini060.lib ini060.obj -> here it fails and I get this error message
ren ini060.lib sepran.lib
move sepran.lib %SPHOME%lib
call %SPHOME%binmakelib
cd %SPHOME%sourceintro
call %SPHOME%bincompile *.for ............................................... etc
lib /? gives:
'lib' is not recognized as an internal or external command, operable program or batch file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the output of running ifortvars.bat? This should in turn invoke the appropriate Visual Studio startup script to add VS folders to PATH. It reads as if this is not happening. Also, what is the contents of ifortvars.bat?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the output of running ifortvars.bat? This should in turn invoke the appropriate Visual Studio startup script to add VS folders to PATH. It reads as if this is not happening. Also, what is the contents of ifortvars.bat?
The content of ifortvars.bat:
@echo off
Rem Intel Visual Fortran Compiler Build Environment for 32-bit applications
echo.
echo Intel Fortran Compiler for applications running on IA-32, Version 10.1.011
echo Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
echo.
SET VSINSTALLDIR=C:Program FilesMicrosoft Visual Studio 8
SET VCINSTALLDIR=%VSINSTALLDIR%VC
SET PATH=%VSINSTALLDIR%Common7IDE;%VCINSTALLDIR%BIN;%VSINSTALLDIR%Common7Tools;%VSINSTALLDIR%Common7Toolsbin;%VCINSTALLDIR%PlatformSDKbin;%PATH%
SET LIB=%VCINSTALLDIR%atlmfclib;%VCINSTALLDIR%lib;%VCINSTALLDIR%PlatformSDKlib;%LIB%
SET INCLUDE=%VCINSTALLDIR%atlmfcinclude;%VCINSTALLDIR%include;%VCINSTALLDIR%PlatformSDKinclude;%INCLUDE%
title Intel Fortran Compiler for applications running on IA-32, Version 10.1.011 build environment
echo.
SET IFORT_COMPILER10=C:Program FilesIntelCompilerFortran10.1.011
SET INTEL_SHARED=C:Program FilesCommon FilesIntelShared Files
SET INTEL_LICENSE_FILE=C:Program FilesCommon FilesIntelLicenses
SET PATH=%IFORT_COMPILER10%Ia32Bin;%INTEL_SHARED%Ia32Bin;%PATH%
SET LIB=%IFORT_COMPILER10%Ia32Lib;%LIB%
SET INCLUDE=%IFORT_COMPILER10%Ia32Include;%INCLUDE%
if exist "%FNL_DIR%IA32binfnlsetup.bat" call "%FNL_DIR%IA32binfnlsetup.bat"
The output of ifortvars that I get is:
Intel Fortran Compiler for applications running on IA-32, Version 10.1.011
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
I think it sets the correct path for Visual Studio?
The problem appears to be related to the xilib command, it gives the following error:
xilib: executing 'lib'
xilib: error spawn_errno_ENOENT: could not find 'lib'
xilib: error spawn_errno_default: spawn('c:program filesintelcompilerfortran10.1.011ia32binxilink.exe') failed, errno=0
The system cannot find the file specified.
The system cannot find the file specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, the real problem is shown by "lib /?" not working. Is there a lib.exe in C:Program FilesMicrosoft Visual Studio 8VCBin ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, the real problem is shown by "lib /?" not working. Is there a lib.exe in C:Program FilesMicrosoft Visual Studio 8VCBin ?
Hello Steve,
You seem to be right: there is not even a Bin directory present! Something must have been going wrong with the installation of Visual Studio that came with my Fortran compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Should de fortran compiler integration put the lib.exe into this folder, or should it be there originally after installation of MS Visual Studio?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is part of the Visual Studio install. You should try a reinstall or repair of Visual Studio Premier Partner Edition.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page