RVM이 있는 Lion 아래에 Ruby를 설치할 수 없음 – GCC 문제
이 문제와 관련된 대부분의 질문은 Xcode가 없기 때문입니다. Xcode 4.2가 설치되어 있습니다.
설치 시도:
rvm install 1.9.3
Installing Ruby from source to: /Users/jamie/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...
ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracted to /Users/jamie/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/jamie/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/jamie/.rvm/src
Configuring yaml in /Users/jamie/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/jamie/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/jamie/.rvm/usr
ruby-1.9.3-p0 - #configuring
ERROR: Error running ' ./configure --prefix=/Users/jamie/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jamie/.rvm/usr ', please read /Users/jamie/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the installation.
configure.log:
[2011-11-07 04:32:17] ./configure --prefix=/Users/jamie/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jamie/.rvm/usr
configure: WARNING: unrecognized options: --with-libyaml-dir
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking target system type... x86_64-apple-darwin11.2.0
checking whether the C compiler works... no
configure: error: in `/Users/jamie/.rvm/src/ruby-1.9.3-p0':
configure: error: C compiler cannot create executables
See `config.log' for more details
GCC를 사용할 수 있습니다.
gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
ls /usr/bin | grep gcc
gcc
i686-apple-darwin11-llvm-gcc-4.2
llvm-gcc
llvm-gcc-4.2
config.log를 기반으로 (크기 때문에 아래에 게시됨) gcc-4.2를 gcc에 symplink 한 다음 다음을 설치하려고 했습니다.
rvm install 1.9.3
ERROR: The autodetected CC(/usr/bin/gcc-4.2) is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`, and set CC=/path/to/gcc .
그래서 저는 아마 다른 곳에서 gcc를 잡을 수도 있겠지만, 저는 왜 이런 일이 일어나는지에 대해 대부분 우려하고 있습니다.Xcode를 설치하면 충분하지 않을까요?
config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/Users/jamie/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jamie/.rvm/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = Wilson.local
uname -m = x86_64
uname -r = 11.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
4 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 110 tasks, 546 threads, 4 processors
Load average: 1.28, Mach factor: 2.71
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/jamie/.rvm/usr/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
PATH: /Users/jamie/bin
PATH: /Users/jamie/.rvm/bin
PATH: /Users/jamie/.rvm/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2764: checking build system type
configure:2778: result: x86_64-apple-darwin11.2.0
configure:2849: checking host system type
configure:2862: result: x86_64-apple-darwin11.2.0
configure:2882: checking target system type
configure:2895: result: x86_64-apple-darwin11.2.0
configure:3376: checking for C compiler version
configure:3385: gcc-4.2 --version >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3385: gcc-4.2 -v >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3385: gcc-4.2 -V >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3385: gcc-4.2 -qversion >&5
./configure: line 3387: gcc-4.2: command not found
configure:3396: $? = 127
configure:3416: checking whether the C compiler works
configure:3438: gcc-4.2 conftest.c >&5
./configure: line 3440: gcc-4.2: command not found
configure:3442: $? = 127
configure:3480: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define CANONICALIZATION_FOR_MATHN 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3485: error: in `/Users/jamie/.rvm/src/ruby-1.9.3-p0':
configure:3487: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin11.2.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin11.2.0
ac_cv_prog_CC=gcc-4.2
ac_cv_target=x86_64-apple-darwin11.2.0
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOCA=''
AR=''
ARCHFILE=''
ARCH_FLAG=''
AS=''
ASFLAGS=''
BASERUBY='ruby'
BUILTIN_ENCOBJS=''
BUILTIN_TRANSOBJS=''
BUILTIN_TRANSSRCS=''
CAPITARGET=''
CC='gcc-4.2'
CCDLFLAGS=''
CFLAGS=''
CHDIR=''
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
COUTFLAG=''
CP=''
CPP=''
CPPFLAGS=''
CPPOUTFILE=''
CXX='g++-4.2'
CXXFLAGS=''
DEFS=''
DLDFLAGS=''
DLDLIBS=''
DLEXT2=''
DLEXT=''
DLLWRAP=''
DOT=''
DOXYGEN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_SHARED=''
EXECUTABLE_EXTS=''
EXEEXT=''
EXPORT_PREFIX=''
EXTOUT=''
EXTSTATIC=''
GCC=''
GNU_LD=''
GREP=''
INSTALLDOC=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LDSHARED=''
LDSHAREDXX=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_RELATIVE=''
LIBRUBY_SO=''
LIBS=''
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='1'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='9'
MKDIR_P=''
NM=''
NROFF=''
NULLCMD=''
OBJCOPY=''
OBJDUMP=''
OBJEXT=''
OUTFLAG=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PREP=''
RANLIB=''
RDOCTARGET=''
RI_BASE_NAME=''
RM=''
RMALL=''
RMDIR=''
RMDIRS=''
RPATHFLAG=''
RUBYW_BASE_NAME='rubyw'
RUBYW_INSTALL_NAME=''
RUBY_BASE_NAME='ruby'
RUBY_INSTALL_NAME=''
RUBY_PROGRAM_VERSION='1.9.3'
RUBY_RELEASE_DATE='2011-10-30'
RUBY_SO_NAME=''
RUNRUBY=''
SET_MAKE=''
SHELL='/bin/sh'
SOLIBS=''
STATIC=''
STRIP=''
SYMBOL_PREFIX=''
TEENY='1'
TEST_RUNNABLE=''
THREAD_MODEL=''
TRY_LINK=''
UNIVERSAL_ARCHNAMES=''
UNIVERSAL_INTS=''
USE_RUBYGEMS=''
WERRORFLAG=''
WINDRES=''
XCFLAGS=''
XLDFLAGS=''
XRUBY=''
XRUBY_LIBDIR=''
XRUBY_RUBYHDRDIR=''
XRUBY_RUBYLIBDIR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_OBJCOPY=''
ac_ct_OBJDUMP=''
arch=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin11.2.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin11.2.0'
build_vendor='apple'
cflags=' ${optflags} ${debugflags} ${warnflags}'
configure_args=''
cppflags=''
cxxflags=' ${optflags} ${debugflags} ${warnflags}'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
debugflags=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec=''
exec_prefix='NONE'
host='x86_64-apple-darwin11.2.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin11.2.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
optflags=''
pdfdir='${docdir}'
prefix='/Users/jamie/.rvm/rubies/ruby-1.9.3-p0'
program_transform_name='s&^&&'
psdir='${docdir}'
ridir=''
ruby_pc=''
ruby_version=''
rubyhdrdir=''
rubylibprefix=''
rubyw_install_name=''
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitedir=''
sitehdrdir=''
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin11.2.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin11.2.0'
target_vendor='apple'
try_header=''
vendordir=''
vendorhdrdir=''
warnflags=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define CANONICALIZATION_FOR_MATHN 1
configure: exit 77
이 답변은 여러 번 편집되었으며 현재 몇 가지 대체 솔루션이 포함되어 있습니다.간단한 "편집 3" 솔루션을 먼저 사용해 보십시오.
Ruby 1.9.3-p125 이상은 clang에 대한 공식적인 지원을 제공하므로 이러한 버전을 설치하는 경우 GCC가 필요하지 않습니다.이전 버전의 Ruby를 설치하는 경우 계속 읽어 보십시오.
Ruby를 GCC로 컴파일하려면 더 이상 Xcode 4.2에 포함되지 않은 비LLVM 버전의 GCC가 필요합니다.설치( 4 다운그레이드)한 후 4.1을 수행합니다.CC=/usr/local/bin/gcc-4.2 rvm install 1.9.3 --enable-shared
(LLVM gcc가 아닌 경우).
편집: https://github.com/kennethreitz/osx-gcc-installer/downloads 은 GCC 설치에 도움이 될 수 있습니다.또한 다음을 실행하여 사용할 수 있는 일부 정보가 있습니다.rvm requirements
.
2:더, 은 편집 2: 더쉬솔을위해다추수있다니습가할음을을 해 볼 수 .--with-gcc=clang
의 주장에.configure
Ruby가 GCC 대신 clang을 사용할 수 있도록 합니다.
편집 3:rvm install 1.9.3 --with-gcc=clang
당신을 위해 그렇게 해주세요.
참고: 현재 버전의 Xcode에서는 Xcode 메뉴 -> 기본 설정 -> 다운로드 -> 구성 요소와 별도로 명령줄 도구를 설치해야 합니다.이것은 Ruby 뿐만 아니라 명령줄에서 Xcode로 컴파일을 수행하기 위한 전제 조건입니다.
참고 2: 단계를 수행한 후에도 작동하지 않는 경우 재부팅하거나 다시 로그인하여 환경이 올바르게 설정되었는지 확인합니다.
참고 3: 1.9.3-p125 이전 버전의 Ruby는 항상 clang과 완전히 호환되지 않을 수 있으므로 프로덕션 환경에서 "edit 3" 솔루션을 사용하는 경우 소프트웨어를 철저히 테스트하십시오.
스택 오버플로 요약
앱스토어의 Xcode에 있는 깨끗한 Lion 설치에 SiriProxy를 설치하려고 했습니다.
다음과 같은 오류가 계속 발생했습니다. 제공된 CC(/usr/bin/gcc)가 LLVM 기반입니다.
bash-3.2$ rvm install 1.9.3
ERROR: The provided CC(/usr/bin/gcc) is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`.
2일 후에 마침내 다음 두 가지 라인으로 작동했습니다.
http://stackoverflow.com/questions/8000145/ruby-rvm-llvm-and-mysql
bash-3.2$ rvm get head
bash-3.2$ CC=/usr/bin/gcc-4.2 rvm install 1.9.3 --enable-shared
그 전에 저는 Ruby와 Lion에 대한 모든 스택 오버플로 기사를 시도해 보았기 때문에 위의 두 단계가 작동하는 데 도움이 되는 몇 가지 설정을 했을 수 있습니다.
제가 시도한 것은 다음과 같습니다.
Install Xcode.app 실행(App Store에서 다운로드 - 실행하면 추가 설치가 가능함)
설치 중
https://github.com/kennethreitz/osx-gcc-installer/downloads may help for installing GCC.
CC 설정 위치
추가 /Users//.bash_profile
bash-3.2$ more /Users/<USERNAME>/.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
export CC=/usr/share/TargetConfigs/bin/gcc
첫 번째 줄은 SiriProxy 설치 지침 https://github.com/plamoni/SiriProxy 에서 제공되었습니다.
두 번째 라인 수출 CC는 전혀 작동하지 않는 것처럼 보였습니다.그러니 추가하지 마세요.
그것은 각각 많은 버전을 가지고 있었고 마침내 CC=/usr/bin/gcc-4.2 rvm install 1.9.3 --enable-shared를 사용했습니다.
rvm install 1.9.3 --with-gcc=clang
나를 위해 일했습니다.이것은 Xcode("전통적인" GCC"가 없는)를 포함한 완전히 새로운 Lion에 대한 것이었습니다.
. 따로 설치하지 했는데, 알다겠습. gcc-4가 .2를 별도로 설치할 필요가 없고, Xcode로 배송된 것을 사용했는데, 문제가 있었습니다.--with-gcc=clang
통과되지 않았습니다.의 다음줄을내추가습다니했에퓨터에 다음 했습니다..rvmrc
:
export rvm_configure_flags="--with-gcc=clang"
필요에 따라 작동했습니다.
rvm upgrade ruby-1.9.2-p290 ruby-1.9.3-p125
...
ruby-1.9.3-p125 - #extracted to /Users/leif/.rvm/src/ruby-1.9.3-p125 (already extracted)
ruby-1.9.3-p125 - #configuring
ruby-1.9.3-p125 - #compiling
ruby-1.9.3-p125 - #installing
....
Successfully migrated ruby-1.9.2-p290 to ruby-1.9.3-p125
Upgrade complete!
bang:$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]
참고로 내 환경은 다음과 같습니다.
OS
Darwin bang.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
엑스코드
Xcode 4.2.1 Build 4D502
GCC
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
lrwxr-xr-x 1 root wheel 12 22 Dec 21:30 /usr/bin/gcc -> llvm-gcc-4.2
합격이라는 답을 사용해 보았습니다.--with-gcc=clang
명령줄에서 rvm upgrade 명령으로 이동했지만 작동하지 않았고 rvm에서 구성으로 전달되지 않은 것 같습니다.에 전달되지 않는 인수의 된 것 구성전지커않인는수의 RVM 문같것다습니밋된정수가제되달에커▁commit▁apparentvmin(▁not밋다▁fixed▁(▁inly1641ceb0
하지만 최신 에도 (2011년을 통해) RVM을 사용할 수 있습니다.rvm get latest
되지 않았습니다 여전히 통과되지 않았습니다. .rvmrc
파일이 저에게 유일한 방법이었습니다.
원래 질문에 대한 레안드로의 의견에 대해 찬성표를 던질 수 없기 때문에 여기서 답변하는 것뿐입니다.며칠 동안 이 문제를 해결하기 위해 노력한 끝에, 그의 해결책은 결국 저에게 도움이 되었습니다.
읽기 줄을 설치한 후에는 edit3가 작동하지 않았습니다(Xcode 4.2.1).
rvm pkg install readline
추가 매개 변수 전달
rvm install 1.9.3 --with-gcc=clang --with-readline-dir=$rvm_path/usr
성공적으로 설치되었습니다.
Xcode용 명령줄 도구를 설치할 수 있으며, GCC, LLMV 및 Xcode 4.2 이상에서 제외된 기타 도구를 포함합니다.
로부터 양조를 제안하겠습니다.rvm requirements
4 Xcode Version 4.4 (4F250), Version 4.4 (4F250)를 설치한 했습니다.
홈브루:
홈브루를 사용하는 경우 홈브루/듀프에서 apple-gcc42 및 필수 라이브러리를 설치할 수 있습니다.
brew update brew tap homebrew/dupes brew install autoconf automake apple-gcc42 rvm pkg install openssl
기존 Xcode 4.2+ 설치 또는 Xcode용 명령줄 도구와 함께 사용할 수 있습니다.
그리고 당신은 언제나 할 수 있습니다.
$ brew cleanup [specific-formula or without-formula to clean all]
그리고 필요한 경우
$ brew remove apple-gcc42
또는 브루를 통해 설치된 다른 프로그램(이 두 명령에 대한 설명은 문서 참조), 또한 당신은 할 수 있습니다.
/join #machomebrew
프리노드에서 (#홈브루가 아니라 진짜 홈브루 맥주와 관련이 있다고 생각합니다)
Lion(Mac OS X 10.7.2)에서 gcc-4.2 대신 gcc를 사용하도록 구성하기만 하면 됩니다.
소스에서 Ruby-1.9.3 컴파일
구성 출력에서 확인할 수 있습니다.
configure:3385: gcc-4.2 --version >&5
./configure: line 3387: gcc-4.2: command not found
검색할 경우config.log
다음과 같습니다.
CC='gcc-4.2'
저도 같은 문제가 있어서 도망쳤어요configure
선택하는 동안gcc
대신에gcc-4.2
:
> CC=gcc ./configure --prefix=/usr/local
> make
> make install
> ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
(무엇인지 잘 모르겠습니다.configure: WARNING: unrecognized options: --with-libyaml-dir
당신의 출력에서 당신은 그것을 알아냈나요?)
JewelryBox 다운로드 및 사용 Mac OS용 공식 RVM GUI."루비 추가"에서 사용자 버전의 루비를 선택합니다.설치하기 전에 이 스레드에서 승인된 답변의 편집 3이 나타내는 대로 "클랭 사용"을 선택해야 합니다.
최신 rvm에 있는지 확인합니다.rvm 1.10.0을 사용하는 것은 위의 어떤 것도 나에게 맞지 않았습니다.더 나아가,rvm get latest
"당신은 이미 최신 버전을 가지고 있습니다!"라고 잘못 말해 저는 해야만 했습니다.rvm implode
그리고 rvm(1.15.4)을 다시 설치하면 루비 1.9.3-p³가 자동으로 제공됩니다.
저는 위의 어떤 것도 그대로 작동하지 않았습니다.결국 효과가 있었던 것은
rvm get head
rm -rf /usr/local/lib/libsqlite3*
CC=/usr/bin/gcc-4.2 rvm install 1.9.3 --enable-shared
빌드 로그에 따르면 필요한 64비트 아키텍처 등이 누락된 libsqlite를 제거하는 것이 특별한 방법이었습니다.
더 최근의 간단한 솔루션은 railsinstaller.org 을 사용하는 것입니다.osx-gcc 패키지가 내장되어 있어 다운로드하여 설치하는 것만큼 쉽습니다.최근에 새로운 껍질을 가지고 간섭한 후, 저는 제 레일 환경을 더럽히고 착륙했습니다.위의 많은 솔루션을 시도한 후(이전에는 효과가 있었지만) 다음 단계에 따라 작업을 다시 시작했습니다.
설치 프로그램이 git, rvm, homebrew 및 여러 가지 다른 기능을 설치하는 것을 고려하면 시간이 좀 걸립니다.
양조주를 사용하면 루비를 한 줄로 설치할 수 있습니다.
brew install ruby193
OS X 10.8.4에서 즉시 사용할 수 있습니다. (2.0을 원한다면 실행하십시오.)brew install ruby
대신)
더 일반적으로 말하면,brew search ruby
사용 가능한 다양한 저장소를 보여주며, 실제로 구체적으로 알고 싶다면 사용할 수 있습니다.brew versions ruby
대신 특정 버전을 확인하십시오.
당신은 Xcode와 명령줄 도구가 필요할 수 있지만, brew의 설정은 당신을 위해 모든 것을 확인할 것입니다.
제가 Xcode 4.3.2와 Lion 10.7.3을 사용하고 있고, 며칠 전에 노트북을 교체한 후 이전 노트북의 모든 콘텐츠를 이전했기 때문에 동일한 문제가 발생했습니다.gcc와 같이 일부 바이너리는 전송이 되지 않습니다.
그리고 나서 저는 다음과 같이 했습니다.
- Xcode 4.3.2를 휴지통으로 끌어 제거
- https://github.com/kennethreitz/osx-gcc-installer/downloads 에서 gcc 설치 패키지 v2를 다운로드합니다.
- 설치
- 그런 다음 rvm 설치 1.9.2가 작동합니다.
시도:
rvm install 1.9.3 --force-autoconf
언급URL : https://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues
'code' 카테고리의 다른 글
문자열에서 특수 문자를 제거하는 가장 효율적인 방법 (0) | 2023.06.02 |
---|---|
단일 항목을 IEnumberable로 전달 (0) | 2023.06.02 |
j여러 요소에 대해 동일한 클릭 이벤트 쿼리 (0) | 2023.06.02 |
Azure Application Insights - 타임스탬프의 일부로 요약 (0) | 2023.06.02 |
iOS 11 iPhone X 시뮬레이터 UI 탭바 아이콘과 제목이 서로를 덮으면서 렌더링됩니다. (0) | 2023.06.02 |