Re: [CMake] No Such File or Directory

2014-08-18 Thread Jakub Zakrzewski

-Original Message-
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Alan W. Irwin
Sent: Sonntag, 17. August 2014 01:51
To: David Zemon
Cc: cmake@cmake.org
Subject: Re: [CMake] No Such File or Directory

On 2014-08-16 15:02-0500 David Zemon wrote:

 Hello,

 After downloading the 3.0.1 binary Linux distribution of CMake, I am 
 running into the following bash error:

   *david@fresh-ubuntu:~/**PropWare/util$* cmake
^ == that is a prompt followed by 
a blank so it looks like there is no actual path in front of your cmake 
invocation.

   bash: /home/david/cmake-3.0.1-Linux-i386/bin/cmake: No such file or
   directory

I am pretty sure this issue is due to a very long-standing Linux security 
feature where you have to specify executables using a path in front of the 
name, i.e., from that directory invoke cmake with

./cmake

or from anywhere invoke it with the full pathname, e.g.,

/home/david/cmake-3.0.1-Linux-i386/bin/cmake

Hope this guess is right.

Alan

__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy, 
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation for 
stellar interiors (freeeos.sf.net); the Time Ephemerides project 
(timeephem.sf.net); PLplot scientific plotting software package 
(plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux 
Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net).
__

Linux-powered Science
__
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



Hi,

I think you didn't read careful enough. David tries once withou and second time 
with full path. Furthermore, the `which` command can find cmake, what means 
it's somewhere in the PATH, so there's no need to specify full path by 
invokation (do you specify full path when invoking `grep` for example? - I 
don't think so.)

So apparently system cannot find some file, but it's not the CMake executable 
itself. Marcel Loose's answer makes a lot of sense to me.

--
Gruesse,
Jakub



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] No Such File or Directory

2014-08-18 Thread David Zemon
The first reply was perfect. All I needed was libc6:i386. So bizarre, but I'm 
glad you guys could help.

David

On Aug 18, 2014 2:13 AM, Jakub Zakrzewski jzakrzew...@e2e.ch wrote:


 -Original Message- 
 From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Alan W. Irwin 
 Sent: Sonntag, 17. August 2014 01:51 
 To: David Zemon 
 Cc: cmake@cmake.org 
 Subject: Re: [CMake] No Such File or Directory 

 On 2014-08-16 15:02-0500 David Zemon wrote: 

  Hello, 
  
  After downloading the 3.0.1 binary Linux distribution of CMake, I am 
  running into the following bash error: 
  
    *david@fresh-ubuntu:~/**PropWare/util$* cmake 
     ^ == that is a prompt followed 
 by a blank so it looks like there is no actual path in front of your cmake 
 invocation. 

    bash: /home/david/cmake-3.0.1-Linux-i386/bin/cmake: No such file or 
    directory 

 I am pretty sure this issue is due to a very long-standing Linux security 
 feature where you have to specify executables using a path in front of the 
 name, i.e., from that directory invoke cmake with 

 ./cmake 

 or from anywhere invoke it with the full pathname, e.g., 

 /home/david/cmake-3.0.1-Linux-i386/bin/cmake 

 Hope this guess is right. 

 Alan 

 __ 
 Alan W. Irwin 

 Astronomical research affiliation with Department of Physics and Astronomy, 
 University of Victoria (astrowww.phys.uvic.ca). 

 Programming affiliations with the FreeEOS equation-of-state implementation 
 for stellar interiors (freeeos.sf.net); the Time Ephemerides project 
 (timeephem.sf.net); PLplot scientific plotting software package 
 (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux 
 Links project (loll.sf.net); and the Linux Brochure Project 
 (lbproject.sf.net). 
 __ 

 Linux-powered Science 
 __ 
 -- 

 Powered by www.kitware.com 

 Please keep messages on-topic and check the CMake FAQ at: 
 http://www.cmake.org/Wiki/CMake_FAQ 

 Kitware offers various services to support the CMake community. For more 
 information on each offering, please visit: 

 CMake Support: http://cmake.org/cmake/help/support.html 
 CMake Consulting: http://cmake.org/cmake/help/consulting.html 
 CMake Training Courses: http://cmake.org/cmake/help/training.html 

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html 

 Follow this link to subscribe/unsubscribe: 
 http://public.kitware.com/mailman/listinfo/cmake 



 Hi, 

 I think you didn't read careful enough. David tries once withou and second 
 time with full path. Furthermore, the `which` command can find cmake, what 
 means it's somewhere in the PATH, so there's no need to specify full path by 
 invokation (do you specify full path when invoking `grep` for example? - I 
 don't think so.) 

 So apparently system cannot find some file, but it's not the CMake executable 
 itself. Marcel Loose's answer makes a lot of sense to me. 

 -- 
 Gruesse, 
 Jakub 



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] No Such File or Directory

2014-08-16 Thread David Zemon

Hello,

After downloading the 3.0.1 binary Linux distribution of CMake, I am 
running into the following bash error:


   *david@fresh-ubuntu:~/**PropWare/util$* cmake
   bash: /home/david/cmake-3.0.1-Linux-i386/bin/cmake: No such file or
   directory
   *david@fresh-ubuntu:~/**PropWare/util$* which cmake
   /home/david/cmake-3.0.1-Linux-i386/bin/cmake
   *david@fresh-ubuntu:~/**PropWare/util$*
   /home/david/cmake-3.0.1-Linux-i386/bin/cmake
   bash: /home/david/cmake-3.0.1-Linux-i386/bin/cmake: No such file or
   directory
   *david@fresh-ubuntu:~/PropWare/util$*

Does anyone have any idea why? This problem seems to have existed for 
quite a long time as I am seeing evidence of it 
http://www.cfd-online.com/Forums/openfoam/64045-cmake-no-such-file-directory.html 
as far back as 2009.


The system in question is a fresh installation of Ubuntu 14.04 64-bit 
running in VirtualBox. CMake has never been installed on the machine 
before. The only non-default packages installed are git, vim, make and 
VirtualBox Guest Additions.


Thanks,
David
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] No Such File or Directory

2014-08-16 Thread Marcel Loose
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Op 16-08-14 om 22:02 schreef David Zemon:
 Hello,
 
 After downloading the 3.0.1 binary Linux distribution of CMake, I
 am running into the following bash error:
 
 *david@fresh-ubuntu:~/**PropWare/util$* cmake bash:
 /home/david/cmake-3.0.1-Linux-i386/bin/cmake: No such file or 
 directory *david@fresh-ubuntu:~/**PropWare/util$* which cmake 
 /home/david/cmake-3.0.1-Linux-i386/bin/cmake 
 *david@fresh-ubuntu:~/**PropWare/util$* 
 /home/david/cmake-3.0.1-Linux-i386/bin/cmake bash:
 /home/david/cmake-3.0.1-Linux-i386/bin/cmake: No such file or 
 directory *david@fresh-ubuntu:~/PropWare/util$*
 
 Does anyone have any idea why? This problem seems to have existed
 for quite a long time as I am seeing evidence of it 
 http://www.cfd-online.com/Forums/openfoam/64045-cmake-no-such-file-directory.html

 
as far back as 2009.
 
 The system in question is a fresh installation of Ubuntu 14.04
 64-bit running in VirtualBox. CMake has never been installed on the
 machine before. The only non-default packages installed are git,
 vim, make and VirtualBox Guest Additions.
 
 Thanks, David
 
 
Hi David,

- From the directory name where your cmake resides, I gather this is a
32-bit version. If you have a 64-bit Ubuntu, then you must install the
32-bit libraries. Unfortunately, bash its error message is far from
clear in that respect :(

Usually, it boils down to installing the package ia32-libs, but I
heard some rumors that more recent Ubuntu's no longer support
multi-arch by default. In that case you might need to run the
following command:

sudo dpkg --add-architecture i386

After that you will be able to install all 32-bit libraries at once
(package ia32-libs), or one at a time, by just specifying the
architecture of the package, e.g. libc6:i386.

Hope this helps,
Marcel Loose.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJT7+UrAAoJEEpMyb1AIWdYH8EH/2xcKu1vtXuoGvMDEzFZwkos
DRsR3BPjiU5MYyoGIaatIH7N4ioR6r0vniS4r+BP4qDqbt33Wuv/UHTMbGTN3iyf
4HCJI3xCEO6MCDpkhl59EciRyQb4GmFM9pi/NYDzTUaPvfQoLQ/ZldHaP0jkm72q
AEt51Y1bsc3p822Hv68AD2BFDwkf2VUsg+ooB1vhlo1qn0nlbyAqkmk0nSKs2thh
Zsi0gbfxuRNFILUBC8pvMw62QSmcqYZD6SaYViFGvCUMSn7If8nJvEwiVWKpcOr3
+agyi8a6adAiHGI/AMtzB0DJYB82olMwjhR19H9rIaaAcxdxefNRs6951b4J31k=
=No1X
-END PGP SIGNATURE-
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] No Such File or Directory

2014-08-16 Thread Alan W. Irwin

On 2014-08-16 15:02-0500 David Zemon wrote:


Hello,

After downloading the 3.0.1 binary Linux distribution of CMake, I am running 
into the following bash error:


  *david@fresh-ubuntu:~/**PropWare/util$* cmake

   ^
== that is a prompt followed by a blank so it looks like
there is no actual path in front of your cmake invocation.


  bash: /home/david/cmake-3.0.1-Linux-i386/bin/cmake: No such file or
  directory


I am pretty sure this issue is due to a very
long-standing Linux security feature where you have to specify
executables using a path in front of the name, i.e.,
from that directory invoke cmake with

./cmake

or from anywhere invoke it with the full pathname, e.g.,

/home/david/cmake-3.0.1-Linux-i386/bin/cmake

Hope this guess is right.

Alan

__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__

Linux-powered Science
__
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] No such file or directory error when using cmake/swig

2009-06-01 Thread Gerrick Bivins
Hello,

I'm trying to use swig  cmake to generate java files for one of my
libraries. The problem I'm having is that I'd like to create a jar from

the output file but I don't know how to create a directory that swig can
write to from Cmake. I've specified:

 

SET(CMAKE_SWIG_OUTDIR
${PROJECT_BINARY_DIR}/java/src/com/or/vtkormodelreader ) 

 

In my cmake file but during compile I receive the following error:

 

Unable to open file
E:/work/research/vtkORModelReader/build32/java/src/com/or/vtkormodelread
er\vtkORModelReader.java: No such file or directory

3Project : error PRJ0019: A tool returned an error code from Swig
source

 

If I manually create the directory structure, it works perfectly,
however this isn't the desired behavior.

 

I thought I could work around this by creating the directory during the
build but I can't find  any commands to do something similar to mkdir.


Am I going about this the wrong way? 

 

Gerrick

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] No such file or directory error when using cmake/swig

2009-06-01 Thread Tyler Roscoe
On Mon, Jun 01, 2009 at 09:02:31AM -0500, Gerrick Bivins wrote:
 I thought I could work around this by creating the directory during the
 build but I can't find  any commands to do something similar to mkdir.

Look at cmake -E make_directory.

You can run that as part of your build process with either
execute_process() or, probably better, with an
add_custom_command()/add_custom_target() combo. See the FAQ for details.

tyler
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] No such file or directory error when using cmake/swig

2009-06-01 Thread Gerrick Bivins
Thanks for the tip! Searching the docs for the make_directory flag led me to
using:
FILE(MAKE_DIRECTORY directory1 directory2...)

Works perfectly!!!
Thanks again.
Gerrick


On 6/1/09 10:11 AM, Tyler Roscoe ty...@cryptio.net wrote:

 cmake -E make_directory

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake