could be readnot read used...

解决”libz.a: could not read symbols: Bad value”
(window.slotbydup=window.slotbydup || []).push({
id: '2611110',
container: s,
size: '240,200',
display: 'inlay-fix'
您当前位置: &
[ 所属分类
| 时间 2015 |
作者 红领巾 ]
换了新的机器,编译的db库遇到点问题,记录下
/usr/bin/ld:/usr/local/mysql/lib/mysql/libz.a(compress.o):relocationR_X86_64_32against`.rodata.str1.1'can not beusedwhenmrecompilewith-fPIC
/usr/local/mysql/lib/mysql/libz.a:could not
read symbols:Badvalue
collect2:ldreturned1exitstatus
error:command'gcc'failedwithexitstatus1
应该是这个库不对,重新下载编译zlib库,编译的时候注意参数
CFLAGS="-O3-fPIC"
./configure--prefix=/usr/local/ zlib
makeinstall
进入python的mysql库目录
exportLDFLAGS="-L/usr/local/ zlib /lib"
exportCPPFLAGS="-I/usr/local/ zlib /include"
pythonsetup.pybuild
pythonsetup.pyinstall
再次编译MySQLdb成功。
--------------------------------------------------------------------------------------------------------------
makefile的选项CFLAGS、CPPFLAGS、LDFLAGS和LIBS的区别
LDFLAGS是选项,LIBS是要链接的库。都是喂给ld的,只不过一个是告诉ld怎么吃,一个是告诉ld要吃什么。
网上不难搜索到上面这段话。不过“告诉ld怎么吃”是什么意思呢?看看如下选项:
LDFLAGS = -L/var/xxx/lib -L/opt/mysql/libLIBS = -lmysqlclient -liconv
这就明白了。LDFLAGS告诉链接器从哪里寻找库文件,LIBS告诉链接器要链接哪些库文件。不过使用时链接阶段这两个参数都会加上,所以你即使将这两个的值互换,也没有问题。
说到这里,进一步说说LDFLAGS指定-L虽然能让链接器找到库进行链接,但是运行时链接器却找不到这个库,如果要让软件运行时库文件的路径也得到扩展,那么我们需要增加这两个库给"-Wl,R"
LDFLAGS = -L/var/xxx/lib -L/opt/mysql/lib -Wl,R/var/xxx/lib -Wl,R/opt/mysql/lib
如果在执行./configure以前设置环境变量export LDFLAGS="-L/var/xxx/lib -L/opt/mysql/lib -Wl,R/var/xxx/lib -Wl,R/opt/mysql/lib" ,注意设置环境变量等号两边不可以有空格,而且要加上引号哦(shell的用法)。那么执行configure以后,Makefile将会设置这个选项, 链接时会有这个参数,编译出来的可执行程序的库文件搜索路径就得到扩展了。
本文数据库(mysql)相关术语:navicat for mysql mysql workbench mysql数据库 mysql 存储过程 mysql安装图解 mysql教程 mysql 管理工具
转载请注明本文标题:本站链接:
分享请点击:
1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
阅读(1964)
玄门非有闭,苦学当自开
手机客户端
,专注代码审计及安全周边编程,转载请注明出处:http://www.codesec.net
转载文章如有侵权,请邮件 admin[at]codesec.netDoctor Seuss was born in 1904. By the middle 1950s, he had become one of the best-loved and most successful children's book writers in the world. His books are very popular with young readers. They enjoy the invented words and the pictures of unusual funny animals and plants.In 1954, life magazine published a report about school children who could not read well. The report said many children's books were not interesting. Doctor Seuss strongly hoped to help children and decided to write books that were interesting and easy to read. He used words with the same ending sound, like fish and wish. He did not receive training in art. Yet, he drew the pictures for most of his books. In 1957, Dr. Seuss wrote The Cat in the Hat. He used less than 230 words to write the book and even a six-year-old should be able to read it. It was a fun story and easy to read. Children loved it. Their parents loved it, too. Today it is still one of the stories they like best. The success of The Cat in the Hat made him want to write more books for children. In 1960, he wrote a book using less than fifty words. The book is called Green Eggs and Ham. In 1984, Doctor Seuss won a Pulitzer Prize. He was honored for the education and enjoyment his books provided American children and their parents. He died at the age of 87, but his influence remains. Millions of his books have been sold worldwide. People say his books helped change the way American children learned to read. Yet, his books are loved by people of all ages. Doctor Seuss once said, "I do not write for children. I write for people. 小题1:Doctor Seuss learned from the magazine that _______.A.some school children could not read well B.many children's books were interestingC.children wanted to learn to writeD.a writer for children was wanted小题2: People like his books because the books ______.A.are cheap and easy to get B.were written in different languagesC.are easy and interesting to read D.were written with invented words小题3:He wrote the book The Cat in the Hat at the age of _____.A.50B.53C.56D.87小题4:Which of the following is TRUE according to the passage?A.Doctor Seuss wrote Green Eggs and Ham with over 230 words.B.Doctor Seuss wrote books only for children in the United States.C.The Cat in the Hat was written only for six-year-old children.D.His books provided education and enjoyment for Americans.小题5: From the text we know that Doctor Seuss __________.A.won a Pulitzer Prize soon after his deathB.sold millions of his books himself worldwideC.changed American children's way of reading D.wrote the largest number of books in the world - 跟谁学
在线咨询您好,告诉我您想学什么,15分钟为您匹配优质老师哦马上咨询
搜索你想学的科目、老师试试搜索吉安
在线咨询您好,告诉我您想学什么,15分钟为您匹配优质老师哦马上咨询&&&分类:Doctor Seuss was born in 1904. By the middle 1950s, he had become one of the best-loved and most successful children's book writers in the world. His books are very popular with young readers. They enjoy the invented words and the pictures of unusual funny animals and plants.In 1954, life magazine published a report about school children who could not read well. The report said many children's books were not interesting. Doctor Seuss strongly hoped to help children and decided to write books that were interesting and easy to read. He used words with the same ending sound, like fish and wish. He did not receive training in art. Yet, he drew the pictures for most of his books. In 1957, Dr. Seuss wrote The Cat in the Hat. He used less than 230 words to write the book and even a six-year-old should be able to read it. It was a fun story and easy to read. Children loved it. Their parents loved it, too. Today it is still one of the stories they like best. The success of The Cat in the Hat made him want to write more books for children. In 1960, he wrote a book using less than fifty words. The book is called Green Eggs and Ham. In 1984, Doctor Seuss won a Pulitzer Prize. He was honored for the education and enjoyment his books provided American children and their parents. He died at the age of 87, but his influence remains. Millions of his books have been sold worldwide. People say his books helped change the way American children learned to read. Yet, his books are loved by people of all ages. Doctor Seuss once said, "I do not write for children. I write for people. 小题1:Doctor Seuss learned from the magazine that _______.A.some school children could not read well B.many children's books were interestingC.children wanted to learn to writeD.a writer for children was wanted小题2: People like his books because the books ______.A.are cheap and easy to get B.were written in different languagesC.are easy and interesting to read D.were written with invented words小题3:He wrote the book The Cat in the Hat at the age of _____.A.50B.53C.56D.87小题4:Which of the following is TRUE according to the passage?A.Doctor Seuss wrote Green Eggs and Ham with over 230 words.B.Doctor Seuss wrote books only for children in the United States.C.The Cat in the Hat was written only for six-year-old children.D.His books provided education and enjoyment for Americans.小题5: From the text we know that Doctor Seuss __________.A.won a Pulitzer Prize soon after his deathB.sold millions of his books himself worldwideC.changed American children's way of reading D.wrote the largest number of books in the worldDoctor Seuss was born in 1904. By the middle 1950s, he had become one of the best-loved and most successful children's book writers in the world. His books are very popular with young readers. They enjoy the invented words and the pictures of unusual funny animals and plants.In 1954, life magazine published a report about school children who could not read well. The report said many children's books were not interesting. Doctor Seuss strongly hoped to help children and decided to write books that were interesting and easy to read. He used words with the same ending sound, like fish and wish. He did not receive training in art. Yet, he drew the pictures for most of his books. In 1957, Dr. Seuss wrote The Cat in the Hat. He used less than 230 words to write the book and even a six-year-old should be able to read it. It was a fun story and easy to read. Children loved it. Their parents loved it, too. Today it is still one of the stories they like best. The success of The Cat in the Hat made him want to write more books for children. In 1960, he wrote a book using less than fifty words. The book is called Green Eggs and Ham. In 1984, Doctor Seuss won a Pulitzer Prize. He was honored for the education and enjoyment his books provided American children and their parents. He died at the age of 87, but his influence remains. Millions of his books have been sold worldwide. People say his books helped change the way American children learned to read. Yet, his books are loved by people of all ages. Doctor Seuss once said, "I do not write for children. I write for people. 小题1:Doctor Seuss learned from the magazine that _______.A.some school children could not read well B.many children's books were interestingC.children wanted to learn to writeD.a writer for children was wanted小题2: People like his books because the books ______.A.are cheap and easy to get B.were written in different languagesC.are easy and interesting to read D.were written with invented words小题3:He wrote the book The Cat in the Hat at the age of _____.A.50B.53C.56D.87小题4:Which of the following is TRUE according to the passage?A.Doctor Seuss wrote Green Eggs and Ham with over 230 words.B.Doctor Seuss wrote books only for children in the United States.C.The Cat in the Hat was written only for six-year-old children.D.His books provided education and enjoyment for Americans.小题5: From the text we know that Doctor Seuss __________.A.won a Pulitzer Prize soon after his deathB.sold millions of his books himself worldwideC.changed American children's way of reading D.wrote the largest number of books in the world科目:最佳答案小题1:A小题2:C小题3:B小题4:D小题5:C解析
知识点:&&基础试题拔高试题热门知识点最新试题
关注我们官方微信关于跟谁学服务支持帮助中心ios - archive apple LLVM 6.0 error could not read profile - Stack Overflow
to customize your list.
Announcing Stack Overflow Documentation
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
when in device test it's ok.but when i want to archive ,xcode give the error like this .
error: Could not read profile: No such file or directory
it is the errors
CompileC /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.o jinbi/Views/NavigationMenuView/UIColor+Extension.m normal armv7 objective-c pilers.llvm.clang.piler
cd /wikimo/project/iyoo-ios-app
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/wikimo/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fprofile-instr-use=/wikimo/project/iyoo-ios-app/OptimizationProfiles/jinbi.profdata -miphoneos-version-min=6.1 -iquote /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-generated-files.hmap -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-own-target-headers.hmap -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-all-target-headers.hmap -iquote /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/哎呦瘦了-project-headers.hmap -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/BuildProductsPath/Release-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/DerivedSources/armv7 -I/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/DerivedSources -F/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/BuildProductsPath/Release-iphoneos -include /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/PrecompiledHeaders/jinbi-Prefix-gdlmasukgjdlutbqrcfgpdbwoxhr/jinbi-Prefix.pch -MMD -MT dependencies -MF /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.d --serialize-diagnostics /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.dia -c /wikimo/project/iyoo-ios-app/jinbi/Views/NavigationMenuView/UIColor+Extension.m -o /Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.o
because the
/Users/wikimo/Library/Developer/Xcode/DerivedData/jinbi-anvflcahmvfrbchckuahzoashzvm/Build/Intermediates/ArchiveIntermediates/jinbi/IntermediateBuildFilesPath/jinbi.build/Release-iphoneos/jinbi.build/Objects-normal/armv7/UIColor+Extension.o
can not generate, how can i generate
Targets -> Valid Architectures has already added armv7 architecture
Here is the solution if any one want.....
Go to Project -& Build Setting -& Apple LLVM 6.0-code generation
and clear Optimization Profile File
Clean Your project.....Build your project and archive your project....and you are done....
8,82632653
Simply follow this steps:
Clean your project
Remove derived data
Go to Targets -> Valid Architectures & add armv7 architecture
Build & Run your project
Hope it will work for you.
Select App targets. Right click on the test target and delete it.
Clean your project and Run.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
The week's top questions and answers
Important community announcements
Questions that need answers
By subscribing, you agree to the
Stack Overflow works best with JavaScript enablediphone - Could not read from Info.plist - Stack Overflow
to customize your list.
Announcing Stack Overflow Documentation
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
I copied a project between 2 macs. I got the error message about Info.plist not found in Xcode 4 ProcessInfoPlistFile:
could not read data from
'/Users/iamme/Documents/XCode/myapp/myapp/myapp-Info.plist': The file
“myapp-Info.plist” couldn’t be opened because there is no such file.
As advised in
I went to build settings and put the right path - which I copied and pasted from file path shown in Xcode.
Unfortunately when compiling I got exactly the same message. So where else is Info.plist path stored?
Update: I have put relative path as advised but still get the error (give full message in activity log):
Process myapp/myapp-Info.plist
ProcessInfoPlistFile /Users/username/Library/Developer/Xcode/DerivedData/myapp-ancooijwpdbuzbbggnsalnhvckyr/Build/Products/Debug-iphonesimulator/myapp.app/Info.plist myapp/myapp-Info.plist
cd /Users/username/Documents/XCode/myapp
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-infoPlistUtility myapp/myapp-Info.plist -genpkginfo /Users/username/Library/Developer/Xcode/DerivedData/myapp-ancooijwpdbuzbbggnsalnhvckyr/Build/Products/Debug-iphonesimulator/myapp.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/username/Library/Developer/Xcode/DerivedData/myapp-ancooijwpdbuzbbggnsalnhvckyr/Build/Products/Debug-iphonesimulator/myapp.app/Info.plist
9,81240146309
Don't use an absolute path here, use a path relative to your project file.
The default layout for Xcode projects is this:
CodeName.xcodeproj
CodeName-Info.plist
CodeName-Prefix.pch
Graphically, that looks like this in Finder:
In this case, you'd want Info.plist File to be CodeName/CodeName-Info.plist.
Here, I've selected the Xcode project, target, and used the search bar to limit the settings being shown:
Finally, check that your project is including the info.plist file from the right location.
30.2k16108157
Select your project Target go to Build Phase, then select "Copy Bundle Resources", you would see red highlighted file references just remove those references, again add all those files. Now perform clean and build.
For a safety check just verify the Info.plist file path in "Build Settings"> Packaging section.
Warning : Never add Info.plist in "Copy Bundle Resources" build phase in your iOS project.
17.2k114960
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
The week's top questions and answers
Important community announcements
Questions that need answers
Stack Overflow works best with JavaScript enabled

我要回帖

更多关于 could be read 的文章

 

随机推荐