I have a problem with installing gnucobol 2.2.
I get an error message telling me there's no c compiler found. I run windows10 on my laptop
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether CFLAGS can be modified... yes
checking for gcc... no
checking for xlc... no
checking for cc... no
configure: error: in `/cygdrive/c/gnucobol-2.2-rc':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
can someone please help me with this problem?
thank you :)
Whilst not directly related to the "./configure" question, a general "easy" answer to "installing gnucobol on windows10" might be:
Use a package manager such as chocolatey
https://community.chocolatey.org/packages/gnucobol
This doesn't work at the moment due to an issue with the packaging, but generally speaking is likely the easiest "just install" option on native Windows
Install WSL and then "apt install gnucobol" in there.
WSL is "Windows Subsystem for Linux". See https://learn.microsoft.com/en-us/windows/wsl/install . The drawback of this approach is that if you're using gnucobol to create objects, libraries or executables (as opposed to just C code) then you'll get Linux objects, libraries or executables, which likely isn't what you want on Windows. However, for just getting access to the environment, it's likely the fastest way there.
Related
I'm starting a new project but I have issues installing sqlite3 on my computer. What is the problem?
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.0/ext/sqlite3
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20190428-9612-10i9sod.rb extconf.rb
checking for sqlite3.h... yes
checking for pthread_create() in -lpthread... yes
checking for -ldl... no
checking for dlopen()... no
missing function dlopen
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
I have already installed Ruby, Rails, Bundle. But apparently, something is missing.
I had this error on my win7, and this was my solution:
type ridk exec pacman -S mingw-w64-x86_64-dlfcn and install
This should work if your install ruby in 'common' way. Like 'rubyinstaller'.
You can consider skipping SQLite altogether. The only reason Rails is setup for SQLite by default is that its easy to setup up on most systems. If not then its mostly a waste of time.
Its not really a viable option for deployment as its file based. This is especially if you want to deploy to cloud platforms such as Heroku which use ephemeral file systems.
You will want to develop and test on the same database that you are going to deploy to such as Postgres.
Differences between backing services mean that tiny incompatibilities
crop up, causing code that worked and passed tests in development or
staging to fail in production. These types of errors create friction
that disincentivizes continuous deployment. The cost of this friction
and the subsequent dampening of continuous deployment is extremely
high when considered in aggregate over the lifetime of an application.
https://12factor.net/dev-prod-parity
I'm building an app for iOS7 with Xcode 5 using Google Tesseract OCR:
http://lois.di-qual.net/blog/install-and-use-tesseract-on-ios-with-tesseract-ios/
It worked fine with English recognition but I couldn't add any other language to the project. Then I found some other projects do it successfully by compiling Tesseract library:
http://inspirationteam.weebly.com/home/compile-use-tesseract-ocr-lib-301-on-ios
http://tinsuke.wordpress.com/2011/11/01/how-to-compile-and-use-tesseract-3-01-on-ios-sdk-5/
According to these articles, my llvm-g++ and llvm-gcc should be in
export CXX="$DEVROOT/usr/bin/llvm-g++"
export CC="$DEVROOT/usr/bin/llvm-gcc"
With $DEVROOT should be something like
export DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
While I'm using Xcode 5 and Mac OSX 9.2 (I've heard that there're somethings had changed about C compiler with these guys), these paths didn't work for me:
checking build system type... i386-apple-darwin13.3.0
checking host system type... i386-apple-darwin13.3.0
checking how to print strings... printf
checking for gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc
checking whether the C compiler works... no
configure: error: in `/Users/phuoc-de/Desktop/a/leptonica-1.71':
configure: error: C compiler cannot create executables
See `config.log' for more details
I've already installed Command line, but it still didn't work.
Does anyone know how to solve this problem? Thanks.
My days of using configure, autoconf and friends are at an end as I can pretty much find everything I want from Macports.
For me it's as simple as typing:
$ sudo port install tesseract
and going to make tea.
I found my answer here
export CXX=`xcrun -find c++`
export CC=`xcrun -find cc`
Hope it helps someone!
Trying to build a completely self-contained OTP that can be moved around independently of libs installed on a system.
Build OpenSSL 1.0.0d from source as follows:
./config --prefix=<open-ssl-dir>
make
make install
Then OTP R14B03:
./configure --prefix=<erlang-dir> --with-ssl=<open-ssl-dir> --without-termcap
Make of Erlang then fails as follows:
relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC
We're talking Ubuntu 10.04. Any help greatly appreciated - thanks!
The "can not be used when making a shared object; recompile with -fPIC" would mean SSL is not build with the Position Independent Code flag. This is needed for building it as a Dynamic Shared Object (DSO). This is probably needed by Erlang build process. Example build:
$ tar zxvf openssl-0.x.tar.gz
$ cd openssl-x
$ sh config shared -fPIC
$ make
$ sudo make install
For ppc64le:
./configure --prefix=/home/huaxin/huaxin/toolsInstalled/ --build=ppc64le CFLAGS="-D_GNU_SOURCE -DOPENSSL_NO_EC=1"
I suggest that you build on a VM where you have sudo permissions. Then build libraries like OpenSSL using --prefix=/usr so that make install puts them in the usual system library.
Then build your tool, in this case Erlang, using -rpath. Then use ldd to find all library dependencies for Erlang and any ports (C extensions) and copy those into Erlangs lib directory. Check all binaries and libraries with readelf -d to make sure that RPATH is set to $ORIGIN or $ORIGIN/../lib as needed. Use patchelf to fix these things if the linking process is not quite right (or you copied in secondary dependencies of system libraries).
Then use patchelf to set the interpreter for your binaries (not libraries) to point to ld-linux.so.2 in Erlang's lib directory. And then run a test suite using
strace -e open erl ... to make sure that your build is not opening anything in /lib or /usr/lib.
At this point tar it up and it will run on any Linux.
See this question Compiling Python 2.6.6 and need for external packages wxPython, setuptools, etc... in Ubuntu for far more detail on how I built Python in this fashion.
I am trying to build Erlang on Solaris 10. The build process fails with the message that it can not find libncurses.so.5.
I have installed libncurses from sunfreeware.com, which I have build from scratch and has installed itself in /usr/local/lib/.
I have tried to set LDFLAGS with -L/usr/local/lib/ but have still had no luck.
What am I missing so that make picks up the library?
I am using GNU Make 3.81 and GCC 3.4.6.
Could you post the relevant bit from config.log?
Did you also set the include path with -I in either CPPFLAGS or CFLAGS?
Update: You could also try installing Erlang from OpenCSW instead.
On RedHat Enterprise Linux 5 the latest Ruby version available via RPM is 1.8.5. My Rails app requires 1.8.6 or above so I need to compile Ruby from source.
I have tried the following to build it and it seems to build ok, but then I'm seeing gcc compilation errors when trying to run a plug-in which requires RubyInline.
There seems to be a lack of decent documentation for building Ruby from source, suitable for running Rails apps.
Here's how I compiled Ruby:
./configure --prefix=/usr --with-openssl-include=/usr/include/openssl --with-openssl-lib=/usr/lib64/openssl/engines
make
sudo make install
I wonder whether there are specific compile flags I need to build this on a 64-bit system. The actual error I'm seeing is
error executing "gcc -shared -fPIC -g -O2 -I /usr/lib/ruby/1.8/x86_64-linux -I /usr/include -L/usr/lib -o \"/home/deploy/.ruby_inline/Inline_ImageScience_aa58.so\" \"/home/deploy/.ruby_inline/Inline_ImageScience_aa58.c\" -lfreeimage -lstdc++ ":
Any advice would be greatly appreciated
The best way would probably be to just "steal" a Ruby 1.8.6 RPM from Fedora. The second best way would be to steal a Ruby 1.8.6 SRPM from Fedora and build it yourself.
However, there is one thing you could do: add a --disable-pthread flag to the configure line and remove --enable-pthread if it's there. --enable-pthread makes MRI significantly slower, and is only needed if you want to use Ruby/Tk and your system's Tk library was built with --enable-pthread.
Ruby packages for Fedora (including SRPM)
Couldn't post as a comment on the correct answer so added here - editors feel free to tidy-up.