Giter Club home page Giter Club logo

Comments (11)

rdp avatar rdp commented on June 22, 2024

./configure: 157: ./configure: cannot create /tmp/test.c: Permission denied

maybe you can it as root once but are not now?

On Sun, Feb 22, 2015 at 10:24 AM, pyahmed [email protected] wrote:

I'm trying to run the script on Ubuntu 14.10/64bit but at some point I get
the following error:

Ok, done building MinGW-w64 cross-compiler(s)...
Building 32-bit ffmpeg...

PKG_CONFIG_PATH=/home/dataman/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig
Downloading (via git clone) dlfcn-win32 from
https://github.com/dlfcn-win32/dlfcn-win32.git
Cloning into 'dlfcn-win32.tmp'...
remote: Counting objects: 156, done.
remote: Total 156 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (156/156), 48.53 KiB | 0 bytes/s, done.
Resolving deltas: 100% (92/92), done.
Checking connectivity... done.
done downloading dlfcn-win32
./configure: 157: ./configure: cannot create /tmp/test.c: Permission denied
testing compiler:
/home/dataman/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -shared -o
/tmp/test.dll /tmp/test.c
./configure: 163: ./configure:
/home/dataman/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc: not found
/home/dataman/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc could not
create shared file with Windows API functions.
Make sure your MinGW system is working properly.

making /home/dataman/sandbox/win32/dlfcn-win32 as $
PATH=/home/dataman/sandbox/mingw-w64-i686/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
make -j 1

Makefile:4: config.mak: No such file or directory
make: *** No rule to make target 'config.mak'. Stop.


Reply to this email directly or view it on GitHub
#65.

from ffmpeg-windows-build-helpers.

pyahmed avatar pyahmed commented on June 22, 2024

This is a digital ocean instance. I get this when I run this as root:

Ok, done building MinGW-w64 cross-compiler(s)...
Building 32-bit ffmpeg...
PKG_CONFIG_PATH=/root/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig
Downloading (via git clone) dlfcn-win32 from https://github.com/dlfcn-win32/dlfcn-win32.git
Cloning into 'dlfcn-win32.tmp'...
remote: Counting objects: 156, done.
remote: Total 156 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (156/156), 48.53 KiB | 0 bytes/s, done.
Resolving deltas: 100% (92/92), done.
Checking connectivity... done.
done downloading dlfcn-win32
testing compiler: /root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -shared -o /tmp/test.dll /tmp/test.c
./configure: 163: ./configure: /root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc: not found
/root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc could not create shared file with Windows API functions.
Make sure your MinGW system is working properly.

making /root/sandbox/win32/dlfcn-win32 as $ PATH=/root/sandbox/mingw-w64-i686/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games make -j 1

Makefile:4: config.mak: No such file or directory
make: *** No rule to make target 'config.mak'. Stop.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on June 22, 2024

clear your sandbox first?

On Mon, Feb 23, 2015 at 9:50 AM, pyahmed [email protected] wrote:

This is a digital ocean instance. I get this when I run this as root:

Ok, done building MinGW-w64 cross-compiler(s)...
Building 32-bit ffmpeg...
PKG_CONFIG_PATH=/root/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig
Downloading (via git clone) dlfcn-win32 from
https://github.com/dlfcn-win32/dlfcn-win32.git
Cloning into 'dlfcn-win32.tmp'...
remote: Counting objects: 156, done.
remote: Total 156 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (156/156), 48.53 KiB | 0 bytes/s, done.
Resolving deltas: 100% (92/92), done.
Checking connectivity... done.
done downloading dlfcn-win32
testing compiler: /root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc
-shared -o /tmp/test.dll /tmp/test.c
./configure: 163: ./configure:
/root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc: not found
/root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc could not create
shared file with Windows API functions.
Make sure your MinGW system is working properly.

making /root/sandbox/win32/dlfcn-win32 as $
PATH=/root/sandbox/mingw-w64-i686/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
make -j 1

Makefile:4: config.mak: No such file or directory
make: *** No rule to make target 'config.mak'. Stop.


Reply to this email directly or view it on GitHub
#65 (comment)
.

from ffmpeg-windows-build-helpers.

pyahmed avatar pyahmed commented on June 22, 2024

Yes - was done from absolutely clean state:

  • new instance -> apt-get the deps as suggested by the script -> run the script.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on June 22, 2024

OK I just built it on a DO "clean slate" as well and it worked OK.
I was root the whole time though it shouldn't matter.

testing compiler: /root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc
-shared -o /tmp/test.dll /tmp/test.c
Does /tmp/test.dll exist? Can you delete it?
does /root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc exist? can you
run it?
can you delete /tmp/test.c?
GL!
-roger-

On Mon, Feb 23, 2015 at 12:33 PM, pyahmed [email protected] wrote:

Yes - was done from absolutely clean state:

  • new instance -> apt-get the deps as suggested by the script -> run
    the script.


Reply to this email directly or view it on GitHub
#65 (comment)
.

from ffmpeg-windows-build-helpers.

pyahmed avatar pyahmed commented on June 22, 2024

Does /tmp/test.dll exist? Can you delete it?

Does not exist.

does /root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc exist?

Does not exist.

can you delete /tmp/test.c?

Yes.
So I tried it again. Using the smallest digitalocean config (1CPU/512MB RAM) the script fails with the above error. When I do it with the slightly beefier config (2CPU/1GB RAM) it works perfectly. So seems to be a problem with number of cores or available RAM?

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on June 22, 2024

ahh interesting. Yeah with a small DO box you'd need to add some "virtual"
swap RAM
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
I'll add that as a note.

On Sat, Feb 28, 2015 at 5:10 AM, pyahmed [email protected] wrote:

Does /tmp/test.dll exist? Can you delete it?

Does not exist.

does /root/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc exist?

Does not exist.

can you delete /tmp/test.c?

Yes.
So I tried it again. Using the smallest digitalocean config (1CPU/512MB
RAM) the script fails with the above error. When I do it with the slightly
beefier config (2CPU/1GB RAM) it works perfectly. So seems to be a problem
with number of cores or available RAM?


Reply to this email directly or view it on GitHub
#65 (comment)
.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on June 22, 2024

OK note added

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on June 22, 2024

leaving open since I could warn even more...

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on June 22, 2024

added note, I believe.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on June 22, 2024

ran into this again:

./configure: line 157: /tmp/test.c: Permission denied
testing compiler: /Users/rdp2/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -shared -o /tmp/test.dll /tmp/test.c
/Users/rdp2/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld: cannot open output file /tmp/test.dll: Permission denied
collect2: error: ld returned 1 exit status

it was a permissions issue (just delete /tmp/test* to overcome) at least this time (I did add a "you don't have enough RAM" note as well)

from ffmpeg-windows-build-helpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.